Commit Graph

176 Commits

Author SHA1 Message Date
Neil Millstone
c6d41c0755 Updating DS port for changes in main codebase. Code changes for DevkitArm r20 and latest libnds.
svn-id: r26394
2007-04-06 18:34:53 +00:00
Gregory Montoir
5aca9dce8c added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it.
svn-id: r26357
2007-04-01 17:36:13 +00:00
Max Horn
00919e3a93 Renamed AGIs savegame.cpp to saveload.cpp, to match the other engines
svn-id: r26330
2007-03-30 22:59:45 +00:00
Johannes Schickel
69639ea0bf cleanup.
svn-id: r26315
2007-03-29 16:50:06 +00:00
Torbjörn Andersson
0c5d862ab1 Removed code that at least for now is presumed dead.
svn-id: r26304
2007-03-25 20:23:14 +00:00
Eugene Sandulenko
989f7b67cb - Save AGIPAL resource number properly
- Move GfxMgr constructor to .cpp file

svn-id: r26278
2007-03-22 22:29:00 +00:00
Matthew Hoops
a722b767a8 - adding support for saving AGIPAL games
- adding debug comment when using a new AGIPAL palette
- changing so that only pal.101-109 files are used and not pal.100, as AGIPAL starts at 101

svn-id: r26277
2007-03-22 22:03:21 +00:00
Matthew Hoops
cc93bea7b8 adding debug message if running AGIPAL game
svn-id: r26271
2007-03-21 21:38:53 +00:00
Matthew Hoops
080a76503b adding AGIPAL support (for changing palettes in some fan games) Patch:1684685
svn-id: r26270
2007-03-21 20:13:40 +00:00
Matthew Hoops
96823c885f updating shake.screen warning/comment to reflect that AGIPAL uses it, and not AGIMOUSE
svn-id: r26237
2007-03-18 23:35:24 +00:00
Matthew Hoops
82220883d1 adding GF_AGIPAL to those games which have that feature (the ones with pal.101) and fixing a typo
svn-id: r26236
2007-03-18 23:28:22 +00:00
Max Horn
ed54ea9155 Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
svn-id: r26180
2007-03-17 19:02:05 +00:00
Torbjörn Andersson
8a2529b2d6 Allow synthetic events in dialog windows, e.g. so you can use keyboard repeat
when scrolling the list of savegames.

svn-id: r26175
2007-03-17 16:08:29 +00:00
Torbjörn Andersson
53624376b4 Applied my re-revised patch #1487149 ("Simplified keyboard repeat"), with
Fingolfin's blessings. Keyboard repeat is now handled by the event manager,
rather than by individual engines.

Since this can cause problems with some engines (see the AGI engine), the extra
"key down" events are marked as "synthetic", so that they can be ignored if
necessary.

svn-id: r26170
2007-03-17 15:44:26 +00:00
Torbjörn Andersson
d378b78b6a Allow using the left/right keys to select button in a selection box. (Selection
boxes are used, for instance, when asking the player to verify that he wants to
save the game to a specific slot.)

svn-id: r26168
2007-03-17 13:31:48 +00:00
Max Horn
15d9bc42ea Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
svn-id: r26156
2007-03-17 00:53:21 +00:00
Torbjörn Andersson
5771a9c730 Some usability improvements to the save/load dialog: The scrollbar uses the
top/bottom position only when the first/last slot is in view, save slots are
numbered, and when saving over an old savegame, the description input field is
pre-filled with the old description.

That last one is particularly useful if you save to the same slot repeatedly
while doing something insanely dangerous like, say, walking from one side of
the screen to the other. ("Almost there... almost there... oops.")

svn-id: r26105
2007-03-12 19:19:30 +00:00
Eugene Sandulenko
b12db77620 Patch #1678264: "AGI: Extending the number of save slots"
svn-id: r26098
2007-03-12 08:43:13 +00:00
Torbjörn Andersson
c7ce7ec614 Fixed error handling: we count the command itself in argc, and returning false
means "close the debug console" which probably isn't what we want.

svn-id: r26050
2007-03-10 11:16:16 +00:00
Max Horn
8778f121e2 Replaced uses of fprintf() with warning() or error()
svn-id: r26022
2007-03-08 17:23:19 +00:00
Kostas Nakos
1af4932242 Fix alignment issues in wince port.
This patch/bug is closely related to the behavior shown in agos engine (see https://sourceforge.net/tracker/?func=detail&aid=1657436&group_id=37116&atid=418822).
Every time structs are used to extract data from a buffer, these structs have to be packed.
It is not OK to assume that the compiler does not pad the struct, or that it doesn't have alignment assumptions voodoo (see cited patch).

svn-id: r25881
2007-02-26 18:34:00 +00:00
Max Horn
48a401d9dd Removing dead code
svn-id: r25878
2007-02-26 12:07:20 +00:00
Eugene Sandulenko
b6fdf74a25 Put back DDP entries, but #if 0 them for future reference and prevent
anyone from adding them again.

svn-id: r25801
2007-02-23 00:27:56 +00:00
Max Horn
227a080e5b Patch #1663933 (Kill premix channel) with a few tiny additional tweaks by me
svn-id: r25752
2007-02-20 18:50:17 +00:00
Torbjörn Andersson
11682377e4 More header consistency fixes. (Actually, there was nothing at all to keep
font.h from being included multiple times.)

svn-id: r25744
2007-02-20 17:22:58 +00:00
Stuart George
edd8774836 AGI: Removed detection sums for DDP. DDP uses an unsupporeted agi engine 2.01, all DDP versions are booter disks and thus 'hacks' and is buggy under any agi version other than 2.01 (2.272 and 2.089 dont work correctly). This will also stop bug reports coming in for DDP
svn-id: r25711
2007-02-19 00:03:14 +00:00
Max Horn
b8aeefaffb Added finalize() method to Common::OutSaveFile (which by default just flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing)
svn-id: r25660
2007-02-17 18:55:51 +00:00
Max Horn
7572d2b4f2 Changed detectBestMatchingGame to return a pointer to a ADGameDescription (or a subclass of it); added a (currently fake) fallback callback entry in ADParams
svn-id: r25574
2007-02-13 23:37:44 +00:00
Gregory Montoir
1ce912e106 made rtrim() and ltrim() global functions, to reduce code duplication (it seems parallaction/parser.cpp code re-use them too
svn-id: r25564
2007-02-13 21:06:57 +00:00
Max Horn
832d066532 Fixed compilation
svn-id: r25552
2007-02-13 16:20:28 +00:00
Joachim Eberhard
235a7173c0 added GF_AGIMOUSE for all fangames who seem to use it
svn-id: r25551
2007-02-13 16:11:13 +00:00
Eugene Sandulenko
d5f52d7775 Add FNAMADE_LF() macro
svn-id: r25550
2007-02-13 15:30:52 +00:00
Eugene Sandulenko
80eb248a0e Get rid of _opt. Cleanup.
svn-id: r25549
2007-02-13 15:27:36 +00:00
Max Horn
4968e912ce AdvancedDetector changes:
* Renamed genGameList to gameIDList to make it match the corresponding
  plugin API function name
* removed the detectFunc param from detectGameForEngineCreation,
  as it *always* pointed to a straight wrapper around AdvancedDetector::detectAllGames
* as a consequence, removed the various GAME_detectGames functions from the
  engines, and removed the detectFunc param from ADVANCED_DETECTOR_DEFINE_PLUGIN

svn-id: r25547
2007-02-13 14:55:11 +00:00
Eugene Sandulenko
08079c9dec Fix Apocalyptic Quests.
svn-id: r25546
2007-02-13 14:47:07 +00:00
Eugene Sandulenko
da7d8c9f35 Rename Common::GF_XXX to Common::ADGF_XXX
svn-id: r25545
2007-02-13 13:42:28 +00:00
Max Horn
2afe07992f Renamed kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and add it for AGOS, too
svn-id: r25543
2007-02-13 13:17:46 +00:00
Max Horn
55adc889e7 (re)added flags field to ADGameDescription, with currently only one value (GF_DEMO) -- this flag value is not yet used by anything (also, GF_DEMO hasn't been correctly set for AGI games yet)
svn-id: r25539
2007-02-13 01:28:18 +00:00
Joachim Eberhard
611d1a018e autodistinguish sq2 2.0F dos+amiga
svn-id: r25516
2007-02-12 10:58:07 +00:00
Eugene Sandulenko
f2dff4dec6 Fingolfin's patch for improving dictionary loading speed. Applied as is.
svn-id: r25503
2007-02-12 00:21:30 +00:00
Torbjörn Andersson
3bc0661065 Merged the "palette manager" into the cursor manager. It was only used to
manage *cursor* palettes, so the name was misleading.

svn-id: r25500
2007-02-12 00:04:56 +00:00
Torbjörn Andersson
59eaade15d Make the mouse cursor white (instead of green) with a black outline on
platforms that support cursor palettes. Changed the cursor design slightly.
It's not necessarily better than the old one, but it matches the arrow cursor
used in early SCI games, which seems appropriate.

svn-id: r25499
2007-02-11 23:46:23 +00:00
Eugene Sandulenko
b14bb6206a Improve detection. Remove redundant md5s
svn-id: r25486
2007-02-11 11:23:30 +00:00
Eugene Sandulenko
dcfd2e9224 Make Amiga v3 games work.
svn-id: r25477
2007-02-10 20:50:00 +00:00
Max Horn
2ff7f04cc7 Speed up loading of pred.txt, by using a sort algorithm that doesn't choke on pre-sorted data as our current (sloooow) Common::sort does
svn-id: r25476
2007-02-10 18:48:28 +00:00
Eugene Sandulenko
90a7cbd6d7 Get rid of AGI_AMIGA and use platform setting instead.
svn-id: r25469
2007-02-10 17:10:55 +00:00
Joachim Eberhard
e7c98ad5d6 fixing Amiga games detection
svn-id: r25468
2007-02-10 17:00:36 +00:00
Eugene Sandulenko
1cfac7fda3 Patch #1637824: AGI: Allow mouse use in save / load dialogs
svn-id: r25467
2007-02-10 16:34:45 +00:00
Joachim Eberhard
4c1f958297 minor consistency improvement for dates
svn-id: r25461
2007-02-10 11:18:10 +00:00
Joachim Eberhard
f8cbf22042 make extra info consistent and add missing dates
svn-id: r25459
2007-02-10 11:01:13 +00:00