1845 Commits

Author SHA1 Message Date
Paul Gilbert
8e60e31db3 Changed the events.cpp file to EventDispatcher.cpp, to avoid MSVC name clashes with sdl/events.cpp
svn-id: r42790
2009-07-26 00:27:32 +00:00
Johannes Schickel
fa4903f19c Strip trailing whitespaces.
svn-id: r42752
2009-07-25 13:00:09 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Eugene Sandulenko
a69b4d60fc Formatting
svn-id: r42746
2009-07-25 10:37:20 +00:00
Willem Jan Palenstijn
744112ceb0 Add Common::String::printf to format a string
svn-id: r42743
2009-07-25 10:25:57 +00:00
Johannes Schickel
bbc8021182 Add enum which marks global priorites of the EventManager event dispatcher.
svn-id: r42729
2009-07-25 01:01:41 +00:00
Johannes Schickel
901f2d5836 - EventDispatcher is no longer a singleton.
- Add "getEventDispatcher" method to EventManager.

svn-id: r42728
2009-07-25 01:01:22 +00:00
Johannes Schickel
eeaafdf4ee Moved ArtificialEventSource to common/events.h.
svn-id: r42726
2009-07-25 01:00:47 +00:00
Johannes Schickel
38309da521 - Add marco to easily access the EventDispatcher instance.
- Add events.cpp to module.mk

svn-id: r42724
2009-07-25 01:00:24 +00:00
Johannes Schickel
f037536726 Prevent EventMapper events from being mapped.
svn-id: r42721
2009-07-25 00:59:39 +00:00
Johannes Schickel
b4a1bceeac Add function "allowMapping" to EventSource, for testing whether the event source allows mapping (via the Keymapper for example.)
svn-id: r42720
2009-07-25 00:59:30 +00:00
Johannes Schickel
7905bbbc5b Got rid of EventManger::artificialEventQueue.
svn-id: r42719
2009-07-25 00:59:18 +00:00
Johannes Schickel
ba7e01ad7c Replace "EventProvider" class of the DefaultEventManager implementation with "Common::EventSource".
svn-id: r42718
2009-07-25 00:59:03 +00:00
Johannes Schickel
908af0a37f Add new event dispatching API.
svn-id: r42717
2009-07-25 00:58:44 +00:00
Willem Jan Palenstijn
4c797d57d0 Use a BufferedReadStream to buffer ArjFile's input to reduce memory usage
svn-id: r42637
2009-07-21 09:39:58 +00:00
Johannes Schickel
249b4eb4c3 Fix formatting of some switch statements.
svn-id: r42513
2009-07-15 18:08:54 +00:00
Kari Salminen
11e6c92bd8 Fix some typos in TransactionError-enumeration's comments.
svn-id: r42503
2009-07-15 13:10:29 +00:00
Max Horn
3ed4f388d7 Unify PS2 and non-PS2 alloc code in Common::Array code (if this causes regressions somewhere, we better find a fix that also works on PS2)
svn-id: r42455
2009-07-13 22:08:56 +00:00
Johannes Schickel
51a9bfc9e2 Refactor GUI options update into a function in Common: updateGameGUIOptions.
svn-id: r42446
2009-07-13 18:47:32 +00:00
Max Lingua
93c9194504 Reverted my previous change (fprintf vs fputs),
and properly implemented fputs for stderr case
on PS2 ;-)

svn-id: r42433
2009-07-13 00:55:30 +00:00
Willem Jan Palenstijn
3427fb3100 Remove double endline
svn-id: r42430
2009-07-12 22:08:10 +00:00
Max Lingua
973adc2772 On PS2 use "fprintf" (as in 0.13.x ) to print error messages to stderr,
rather than "fputs", which is buggy in the PS2 implementation.

svn-id: r42429
2009-07-12 22:00:47 +00:00
Max Lingua
17b1c6d0ae I am re-commiting the FORCE_RTL as a temporary solution
in trunk, so that trunk/1.0rc is au pair feature-wise
with 0.13.x.

svn-id: r42403
2009-07-12 05:35:56 +00:00
Max Lingua
13a1dc0a58 Added a temporary work-around for PS2 backend in common/array.h
cause its vintage compiler does not support "new T[newCapacity]()"
but only "new T[newCapacity]", this will let it compile through.

It's ifdef'd as __PLAYSTATION2__, so it won't make a difference
for other backends with more modern tools.

svn-id: r42402
2009-07-12 05:34:46 +00:00
Max Horn
9b3074d929 If NDEBUG is #defined, then assert does nothing, leading to warnings about 'old_size' not being used -> fix that
svn-id: r42056
2009-07-03 11:05:59 +00:00
Johannes Schickel
b37beb4493 Add some more explanation to Graphics::CursorManager::showMouse and OSystem::showMouse.
svn-id: r41968
2009-06-29 23:23:29 +00:00
Max Horn
bb28ed7b7a Changed OSystem::setWindowCaption to expect ISO LATIN 1 encoded input;
also intentionally broke WinCE and Symbian ports (in an obvious way that
can be undo by commenting out some text) -- hopefully this will get the
maintainers' attention during the next release cycle, unlike my emails

svn-id: r41932
2009-06-28 19:58:11 +00:00
Sven Hesse
1491c67691 Added support for Hungarian
svn-id: r41812
2009-06-23 17:55:09 +00:00
Willem Jan Palenstijn
6eed461c94 Fix erase() sometimes hiding other hash elements.
Like CPython, we now use a dummy node to mark nodes as erased,
so that lookup() can skip over it. All tests should now pass again.

svn-id: r41496
2009-06-13 21:07:05 +00:00
Nicola Mettifogo
66decf21f7 Fixed disposeStream initialization.
svn-id: r41474
2009-06-12 10:26:58 +00:00
Nicola Mettifogo
b2e5905327 * Adapted Kyra to the new IFFParser interface.
* Adapted the new IFFParser to Kyra (slightly).
The Kyra1 demo on the website works.

svn-id: r41468
2009-06-12 09:49:38 +00:00
Nicola Mettifogo
36828287ad * Moved the updated IFF code from Parallaction to common/
* Updated Parallaction and SAGA to use the new decoder infrastructure.

svn-id: r41465
2009-06-12 08:51:05 +00:00
Jordi Vilalta Prat
ccbc5f3abb Point to the Cursor and AudioCD Managers to help engine authors following the right path.
svn-id: r41433
2009-06-10 15:33:37 +00:00
Johannes Schickel
be42f800a4 Extend documentation for "kFeatureCursorHasPalette".
svn-id: r41430
2009-06-10 15:11:17 +00:00
Johannes Schickel
ad98719ba2 Fix documentation for debugC and debugCN, relying on special debug levels.
svn-id: r41425
2009-06-10 12:47:19 +00:00
Eugene Sandulenko
ff72f8531c Added debugCN() call which does not add newline automatically
svn-id: r41421
2009-06-10 10:11:24 +00:00
Travis Howell
628e876a46 Spacing.
svn-id: r41375
2009-06-08 14:55:11 +00:00
Max Horn
a5ff6cc19d Fixed appending a (substring of a) string to itself
svn-id: r41337
2009-06-07 13:14:34 +00:00
Max Horn
a39048877a Added some new method variants to Common::String
svn-id: r41333
2009-06-07 13:04:03 +00:00
Max Horn
985bc454b2 Added an experimental '--upgrade-targets' option (to be refined; and possibly hooked to the GUI eventually). This updates the guioptions,platform and lang for all your targets (and with a source change, also the descriptions)
svn-id: r41332
2009-06-07 12:47:10 +00:00
Eugene Sandulenko
a0fa307fc5 Added CoCo3 version of SQ1
svn-id: r41284
2009-06-06 18:22:43 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Eugene Sandulenko
c295f524b2 Implement feature request #1180217: "GUI: Mute option"
svn-id: r41233
2009-06-06 17:36:06 +00:00
Matthew Hoops
7e52694025 Make the PlayStation's abbreviation to all lower-case for consistency and change the description from Playstation to Sony PlayStation
svn-id: r41200
2009-06-05 22:35:13 +00:00
Willem Jan Palenstijn
6e38259270 Add a 'flat' option to FSDirectory to allow searching recursively for files in subdirectories
svn-id: r41090
2009-06-01 00:01:32 +00:00
Filippos Karapetis
010fbadf01 Document that debug level 11 turns on all special debug level messages (refer to rev. #28858)
svn-id: r41076
2009-05-31 16:02:10 +00:00
Max Horn
fb79b18571 Changed SaveFileManager methods to take Common::String params (instead of char pointers)
svn-id: r41000
2009-05-29 14:38:22 +00:00
Max Horn
1c552779a0 Renamed Common::Serializer::syncMagic to matchBytes, and added version paarms to it (we migh want to add corresponding matchUint32LE etc. functions if needed)
svn-id: r40909
2009-05-26 11:31:45 +00:00
Max Horn
94dfc8f638 Fixed a bug in Common::Array (including a unit test for it), and changed the way the internal storage growth over time.
The bug could result in incorrect results when using push_back (or insert_at)
to insert data from an array into itself if this insertions would cause the
internal array storage to grow. Also added a unit test for this bug.

Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two,
instead of being increased by 32.

svn-id: r40907
2009-05-26 11:28:38 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00