Commit Graph

2564 Commits

Author SHA1 Message Date
Johannes Schickel
d811240a9d ALL: Enable Keymapper specific OSystem API only when the Keymapper is enabled. 2012-02-13 01:20:02 +01:00
Tarek Soliman
883f9ae073 COMMON: Add custom backend event 2012-02-12 13:28:13 -06:00
Tarek Soliman
705761011d KEYMAPPER: Allow ports to define their own global keymap 2012-02-12 13:28:13 -06:00
Tarek Soliman
edc5249772 JANITORIAL: Fix template definition whitespace 2012-02-10 21:17:27 -06:00
Tarek Soliman
718e106a31 COMMON: Fix comment typo 2012-02-02 18:10:08 -06:00
Johannes Schickel
db98fdab2b COMMON: Return 0 instead of false in FSNode::createReadStream.
This should "fix" some g++ warnings.
2012-01-29 16:31:52 +01:00
Johannes Schickel
f63df3bf7b GRAPHICS/GUI: Implement charset mapping for TTF fonts.
The charsets used by the translations now need to have a "$(name).cp" file,
which contains an charset index => unicode mapping. Otherwise
create_translations will fail.
2012-01-29 16:26:20 +01:00
dhewg
77c9be7998 COMMON: Fix compilation with mingw-w64
setjmp and longjmp are being used in system headers.
Allow these symbols globally instead of hacking the appropriate
defines in every file including windows.h.
2012-01-23 18:22:50 +01:00
Andrea Corna
c8826297a4 COMMON: Enhance zlib interface 2012-01-13 18:33:04 +01:00
Johannes Schickel
b3f265696f COMMON: Slight formatting fix. 2011-12-30 17:52:40 +01:00
Filippos Karapetis
a473934abd COMMON: Perform some keymapper-related changes to the KeyState struct
The == operator in KeyState should not be checking for sticky modifier
keys. This allows the keymapper's defined actions to function correctly
in desktop platforms, when sticky modifier keys such as caps lock and
num lock are turned on. Also, added some sanity checks to hasFlags()
and enums for sticky and non-sticky keys
2011-12-30 13:59:55 +02:00
Matthew Hoops
7ac5bcd6f1 COMMON: QuickTime mdat atoms should be leaves 2011-12-15 12:59:42 -05:00
Andrea Corna
a6ec4f70da COMMON: Make more members of Archive constant. 2011-12-13 17:55:57 +01:00
Matthew Hoops
b367772b5f VIDEO: Add support for QuickTime video track edit lists 2011-12-12 12:28:48 -05:00
Johannes Schickel
8ff9e0cbff GUI: Fix GUIO flags again.
The GUIO flags use an escape sequence for octal numbers. Starting with
18e84f9c11 GUIO_MIDICMS used "\008" which
resulted in the CMS flag adding a zero into the flags and thus terminating the
GUIO flag string.
2011-12-04 15:54:32 +01:00
athrxx
18e84f9c11 GUI: fix GUIO_NOSPEECH/GUIO_NOSFX settings 2011-12-04 15:05:00 +01:00
Filippos Karapetis
c65146cde1 COMMON: Added Croatian language (for a localized version of BS2.5) 2011-11-18 17:52:26 +02:00
Eugene Sandulenko
5420ad7619 Merge pull request #114 from tsoliman/keymapper2
KEYMAPPER: Keymapper improvements 2
2011-11-17 14:22:48 -08:00
Alyssa Milburn
5647637ea2 COMMON: Move <new> include into scummsys.h.
The header contains forbidden symbols on some platforms, and the
simplest solution seems to be to include it here. This also includes
it from all the portdefs.h files, except the Symbian one. Probably
the FIXME and the #if can be removed once it's known to work.
2011-11-17 12:46:44 +01:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Johannes Schickel
f14eba23d9 COMMON: Improve storage management of Array.
Now our Array class distinguishs between initialized and uninitialized
objects. It furthermore always calls the destructor of no longer contained
elements. This should help with non-POD objects stored in our Array class.

Thanks to Bertrand for his feedback on this.
2011-11-16 19:28:02 +01:00
Johannes Schickel
c2fd35c9ed COMMON: Make value parameter of fill a const reference. 2011-11-16 18:16:40 +01:00
Johannes Schickel
61795739f8 COMMON: Rename Common::set_to to Common::fill.
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Tarek Soliman
2df4b5385c COMMON: Remove ascii check from KeyState::operator==
ascii is used for display and text input. Operator== shouldn't be used in those cases.

Besides, it breaks the keymapper for non-ascii keys like KEYCODE_LEFT
2011-10-27 10:46:21 -05:00
Strangerke
9912d7b856 GUI: Add GUIO EGA Dithering option
This will be used to disable the EGA dithering option
2011-10-24 16:51:18 +02:00
Strangerke
cfa42fee80 LAUNCHER: Add GUIO_NOASPECT to SCUMM engine 2011-10-23 21:45:02 +02:00
Johannes Schickel
3a196478c6 ALL: Reduce assignment of "" to Common::String.
When clearing an existant object clear() should be used.

When constructing objects (or using default values for parameters) the
constructor of String without any argument should be used.

This changes only a few instances I noticed while looking over some recent
commit logs.
2011-10-23 20:04:03 +02:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Eugene Sandulenko
77c65648b1 AD: Swtich GUI options to a char array.
This eliminates nasty limitation of caping number of flags to 31.
Current code has limitation of 255 flags, though.

Only SCUMM engine is converted, rest do not even compile.
Detection of fan talkie MI is broken as it has to be implemented
differently.
2011-10-23 17:53:13 +01:00
Sven Hesse
42b39cb7ec COMMON: Extend some method comments in Common::BitStream
Adding examples to getBits() and addBit().
2011-10-21 00:19:02 +02:00
Sven Hesse
657ee2da59 COMMON: Fix potential UB while shifting Common::BitStream
Shifting a 32-bit value by more than 31 is undefined.
2011-10-21 00:19:02 +02:00
Eugene Sandulenko
f5e4d63a77 Merge pull request #80 from DrMcCoy/newbitstream
COMMON: Rewrite Common::BitStream as a template
2011-10-20 09:27:26 -07:00
anotherguest
8475d7f142 Symbian: Must define scumm_va_copy also for Symbian 2011-10-11 09:10:21 +02:00
Alyssa Milburn
2ffdd0d3b7 COMMON: Include hidden files in FSDirectory cache and detection.
The cache issue has been discussed before, it breaks accessing files
beginning with a dot on POSIX. The change to the advancedDetector
to see hidden files was suggested by AdamRi on IRC.
2011-10-08 14:36:34 +02:00
Matthew Hoops
711d0ff037 COMMON: Ensure numTypes is set to 0 on close 2011-10-07 11:32:57 -04:00
Johannes Schickel
164604805e COMMON: Unbreak ConfigFile::renameSection.
It will still not work when the new section name is already taken, but at
at least when it is not taken it should work now.
2011-10-07 00:16:21 +02:00
Johannes Schickel
7f55737f9c COMMON: Remove unused code in config-file.cpp. 2011-10-07 00:16:21 +02:00
Johannes Schickel
3ddea4952d COMMON: Some minor formatting fixes in translation code.
Done by running astyle over the files.
2011-11-13 01:43:41 +01:00
Eugene Sandulenko
022857a371 COMMON: Fix warning 2011-11-02 22:09:17 +00:00
Torbjörn Andersson
a010038492 JANITORIAL: Remove unnecessary semicolons 2011-10-29 11:23:44 +02:00
Sven Hesse
f1724f1637 COMMON: Rewrite BitStream as a template
This rewrites BitStream as a template, allowing for more different
memory layouts of the actual bit data.
2011-08-27 23:37:07 +02:00
Eugene Sandulenko
35aa235e4b Merge pull request #79 from clone2727/agos_cab
AGOS: Add support for loading data from Windows (InstallShield) installer archives
2011-08-27 08:21:57 -07:00
Chris Warren-Smith
8a2243ff36 BADA: Remove BADA defined check. Was a temp fix for simulator build 2011-08-21 16:39:08 +10:00
Chris Warren-Smith
59739a7a0e BADA: Initial BADA port implementation 2011-08-21 16:37:06 +10:00
Matthew Hoops
f408456d14 COMMON: Add wrapper for inflating headerless zlib data 2011-08-20 16:41:10 -04:00
Johannes Schickel
59200bf426 SCUMM: Fix compilation when translation support is disabled.
For this I added a convenience version of getLanguageYesNo, which works on the
currently setup GUI translation language. All other code which requires this
acan also use it instead of having to worry about the USE_TRANSLATION and thus
having two code paths.
2011-08-20 19:36:54 +02:00
Eugene Sandulenko
03d3b683d2 I18N: Added comments to some of obscure translatable strings 2011-08-20 15:11:47 +01:00
Eugene Sandulenko
a2945ba440 COMMON: Implemented functions for determining localized Y/N equivalent 2011-08-20 12:52:32 +01:00
Eugene Sandulenko
2585de56b6 COMMON: Restore locale <-> Common::Language conversion utils
This reverts commit 284b49aabc.
2011-08-20 12:52:29 +01:00
Bertrand Augereau
ff98725172 COMMON: intLog2 uses _BitScanReverse on MSVC 2011-08-19 01:05:37 +02:00
Johannes Schickel
5491d9306f COMMON: Slight formatting fix. 2011-08-18 23:15:38 +02:00
Eugene Sandulenko
dfcefb3c22 RECORDER: Lower I/O in recorder 2011-08-14 12:20:19 +01:00
Johannes Schickel
00d25a77a9 RECORDER: Defer mutex deletion to destructor.
Since we now call deinit after a game has been run, otherwise RTL would be
broken. See bug report #3388982 "valgrind errors when doing multiple RTL".
2011-08-09 15:04:26 +02:00
Eugene Sandulenko
83eb8e7ab6 RECORDER: Implement time compensation for playback 2011-08-09 08:37:00 +01:00
Eugene Sandulenko
1d50a31830 RECORDER: Give name to recoder priority. Added middle button storing. 2011-08-08 20:01:09 +01:00
Eugene Sandulenko
a4029a8e94 RECORDER: Restore event recorder functionality.
It was badly broken after refactoring into EventObserver.

Fitst, deinit() method was never called which lead to bad record
files. Then, the concept of counting pollEvent() calls was ignored.

Introduced dispatchPoll() method of EventObserver which is implemented
in EventRecorder. It counts calls so is able to inject events at
more proper time.

Additionally now event times are recorded.
2011-08-08 20:01:07 +01:00
Eugene Sandulenko
4144fef5a7 RECORDER: Add some debug output 2011-08-08 20:01:05 +01:00
Christoph Mallon
ab80b20a30 COMMON: Replace x + ARRAYSIZE(x) by the simpler ARRAYEND(x). 2011-08-07 15:19:08 +02:00
Christoph Mallon
a5a8833c05 COMMON: Add DisposablePtr<T>, which replaces many repeated implementations of a dispose flag. 2011-08-07 15:19:08 +02:00
Christoph Mallon
2f23ff72c1 COMMON: Remove implicit conversion from ScopedPtr<T> to T*. 2011-08-07 15:19:08 +02:00
Christoph Mallon
c6d5d74835 COMMON: Make constants actually const. 2011-08-07 15:19:07 +02:00
Christoph Mallon
c876e87efc COMMON: Correct error message.
The message displays bytes, but capacity is the count of objects, so multiply by their size.
2011-08-07 15:19:07 +02:00
Christoph Mallon
79729d03e0 COMMON: Use correct format specifier. 2011-08-07 15:19:07 +02:00
Christoph Mallon
84220d2ca0 COMMON: Remove superfluous Common:: qualifiers. 2011-08-07 15:19:07 +02:00
Christoph Mallon
b3997f0562 COMMON: Use ScopedPtr<> to simplify resource management. 2011-08-07 15:19:07 +02:00
Christoph Mallon
17044f0784 COMMON: Simplify initialization of z_stream struct. 2011-08-07 15:19:06 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Littleboy
539bf5317f COMMON: Add notifyError() and clearError() to the TaskbarManager, used to notify the user that an error happened through the taskbar icon 2011-08-06 15:25:32 -04:00
Johannes Schickel
bcd07d35bb OSYSTEM: Mention that our OSystem graphics API is not thread safe.
Based on f621f6a505 and the fact that our OpenGL
based backends do not (and sometimes cannot easily) implement it in a thread
safe manner.
2011-08-06 18:55:32 +02:00
Alyssa Milburn
df3bc62a3a COMMON: Change param type of processDelayMillis to fix build. 2011-08-06 18:14:28 +02:00
D G Turner
ad936e9f8c COMMON: Corrected Previous Commit.
Common::String class is in common/str.h, not string.h...
2011-08-06 15:52:36 +01:00
D G Turner
fb0a05c4cd COMMON: Fix Missing Dependency In Timer Header.
This should fix the PSP build.
2011-08-06 15:49:11 +01:00
Eugene Sandulenko
baf65bc872 RECORDER: Added stub for delayMillis() processing 2011-08-06 11:31:12 +01:00
Eugene Sandulenko
2fa17c44ed JANITORIAL: Remove SVN keywords 2011-08-06 11:30:47 +01:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
Alyssa Milburn
a8896be85e COMMON: Initialize more z_stream fields before calling inflateInit2.
The zlib documentation and examples claim this is needed, as spotted
by LordHoto.
2011-08-04 21:55:28 +02:00
Oystein Eftevaag
9044e17499 Merge pull request #52 from CeRiAl/macosx-sparkle
MACOSX: Add Sparkle support
2011-08-02 16:09:58 -07:00
Johannes Schickel
950faa4143 COMMON: Limited gcc specific intLog2 to gcc 3.4 or newer.
Older gcc versions did not include __builtin_clz, which made the PS2 port
fail to compile, since it uses 3.2.2.
2011-07-24 20:18:21 +02:00
Johannes Schickel
a1bfbe65ba COMMON: Add an optimized intLog2 implementation for gcc using __builtin_clz.
This is done as discussed here:
54f25aa843
2011-07-24 19:54:49 +02:00
Johannes Schickel
b609100a56 COMMON: Let intLog2 return an int instead of uint32, since it should return -1 for 0. 2011-07-24 19:53:48 +02:00
CeRiAl
f60d6f7a97 MACOSX/UPDATES: Streamline UpdateManager
Moved UpdateManager related code from backends/modular-backend.* to
common/system.*. Added switch --enable/disable-updates to be able
to disable updates support generally.
2011-07-19 21:35:37 +02:00
CeRiAl
828f1884b4 MACOSX: Add Sparkle support 2011-07-19 21:33:01 +02:00
Littleboy
da60ff3ded JANITORIAL: Fix MSVC warnings
- Conversion from double to float
 - Unary minus operator applied to unsigned type
 - ARRAYSIZE redefinition
2011-07-19 14:12:07 -04:00
Matthew Hoops
9ad45e28a1 COMMON: Fix some formatting 2011-07-19 10:31:03 -04:00
Matthew Hoops
6334ec413f COMMON: Move cosine/sine tables out of header files
Access is now restricted to using the getSineTable()/getCosineTable() helper functions.
2011-07-19 00:45:16 -04:00
D G Turner
54f25aa843 COMMON: Renamed Integer Log2 function from log2 to intLog2.
This avoids naming collisions with system libraries on some platforms
i.e. DS, DC where the log2 is realised by macro.
2011-07-19 02:29:13 +01:00
Sven Hesse
45f1f1275c COMMON: Document the BitStream a bit more 2011-07-19 01:48:45 +02:00
clone2727
6370984b22 Merge pull request #50 from clone2727/bink
Add support for Bink video to SCUMM HE
2011-07-18 16:04:39 -07:00
Matthew Hoops
26d15ce675 COMMON: Fix comment 2011-07-18 11:53:47 -04:00
Matthew Hoops
87b4ef5547 COMMON: Update code from eos 2011-07-18 10:28:10 -04:00
Matthew Hoops
e6171fbb74 COMMON: Update class documentation to say they're now used by SCUMM 2011-07-18 10:21:20 -04:00
Matthew Hoops
c4d3a86010 COMMON: Remove USE_BINK checks from header files 2011-07-18 10:13:50 -04:00
Matthew Hoops
a50abde1b1 BUILD: Allow for disabling Bink support 2011-07-13 12:08:26 -04:00
Littleboy
8e75d9c84b COMMON: Update documentation comment for TaskbarManager slot 2011-07-06 14:33:40 -04:00
Matthew Hoops
7dc7271316 COMMON: Remove unused vector2orientation function 2011-07-03 13:32:05 -04:00
Matthew Hoops
9dd8650872 COMMON: Cleanup BitStream
Fix mismatched new[]/free and restored a missing statement
2011-07-02 19:44:04 -04:00
Johannes Schickel
7e4224e52a COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined. 2011-07-03 00:16:07 +02:00
Matthew Hoops
4ace7f626b VIDEO: Add Bink video decoder
Based on eos' code which is in turn based on FFmpeg's code
2011-07-02 16:36:37 -04:00
Matthew Hoops
b44ea652ed COMMON: Add DCT math code
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:30:22 -04:00
Matthew Hoops
f311a7ee67 COMMON: Add RDFT math code
Based on eos' code which is based on FFmpeg's code
2011-07-02 15:28:09 -04:00