Commit Graph
86814 Commits
Author SHA1 Message Date
Stephen Kennedy a051061e38 GCC compilation fixes
svn-id: r33430
2008-07-29 23:24:48 +00:00
Johannes Schickel ca8a4eff26 - Formatting
- Improved Functor#Mem::isValid implementations.

svn-id: r33427
2008-07-29 20:21:54 +00:00
Johannes Schickel e3a600b1d0 Little fix for documentation.
svn-id: r33426
2008-07-29 20:15:29 +00:00
Johannes Schickel 68f41290a3 Documentation for func.h.
svn-id: r33425
2008-07-29 20:09:30 +00:00
Christopher Page a1e3d416fe Added --list-saves support for CINE
svn-id: r33422
2008-07-29 19:01:17 +00:00
Max Horn aaa4d104f7 Added two new classes, BufferedReadStream & BufferedSeekableReadStream, as proposed on scummvm-devel
svn-id: r33419
2008-07-29 17:42:19 +00:00
Johannes Schickel 0a95a4814c Added documentation for the functions in algorithm.h.
svn-id: r33416
2008-07-29 17:00:15 +00:00
Max Horn 57c069ad47 Mass detector: sort all newly detected games by target name before adding them to the config manager
svn-id: r33415
2008-07-29 16:29:28 +00:00
Max Horn df6e8e8889 Added convenience accessor method GameDescriptor::preferredtarget
svn-id: r33414
2008-07-29 16:16:15 +00:00
Max Horn bcac496615 CONFIGMAN: Store domains in the order they were added
svn-id: r33413
2008-07-29 16:12:42 +00:00
Max Horn 0be985ce83 Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
svn-id: r33412
2008-07-29 16:09:10 +00:00
Kari Salminen c9051fcfbd Make sure processSeqList and purgeSeqList are only called in the main loop when running Operation Stealth. Mostly a precaution as the seqList should be totally empty when running Future Wars as it doesn't use it.
svn-id: r33410
2008-07-29 13:46:42 +00:00
Kari Salminen d83c6d7d68 Added purgeSeqList function (Used in mainloop now). Let's see if this helps any...
Renamed functions:
* addScriptToList0 -> addScriptToGlobalScripts
* executeList0     -> executeGlobalScripts
* executeList1     -> executeObjectScripts
* purgeList1       -> purgeObjectScripts (Also added a clarifying TODO to this function)
* purgeList0       -> purgeGlobalScripts (Also added a clarifying TODO to this function)

svn-id: r33409
2008-07-29 13:44:14 +00:00
Nicola Mettifogo f46ee2b70c * Implemented pause/resume of command execution
* Implemented command opcode MOVE (not the script instruction).

svn-id: r33408
2008-07-29 12:59:55 +00:00
Kari Salminen 52700d59fd Added a debug message to loadTempSaveOS's to check whether we loaded the whole savefile. Made objectStruct's clearing also clear x and y member variables in resetEngine.
svn-id: r33407
2008-07-29 12:56:32 +00:00
Nicola Mettifogo f31cf5d94c * Added flexible verb configuration for both NS and BRA.
* Objects can now be really opened and closed in BRA.

svn-id: r33405
2008-07-29 10:22:50 +00:00
Kari Salminen 0365c45b8c Rearranged parts of the Operation Stealth savegame loading routine.
- Emulating the Future Wars savegame loading routine and hoping for the best.
- Fixes an array out of bounds access when loading the global scripts.
Now the loading crashes in the mainloop in processSeqList!
But at least we got a bit farther this time. More fixing to come...

svn-id: r33404
2008-07-29 10:13:53 +00:00
Nicola Mettifogo 884b753c73 Added dialogue text rendering for BRA.
svn-id: r33402
2008-07-29 09:44:05 +00:00
Johannes Schickel a1f48b91ea Formatting.
svn-id: r33401
2008-07-29 09:23:54 +00:00
Johannes Schickel 290f76a623 Added a reset method to SharedPtr, which allows NULLifying it.
svn-id: r33400
2008-07-29 09:16:53 +00:00
Christopher Page 50b7e5aa0d Added --list-saves support for TOUCHE
svn-id: r33398
2008-07-29 06:04:16 +00:00
Christopher Page cf97920930 Added --list-saves support for SWORD2
svn-id: r33396
2008-07-29 05:05:04 +00:00
Christopher Page b0e0896579 Added --list-saves support for SWORD1
svn-id: r33395
2008-07-29 04:51:23 +00:00
Travis Howell 598394e5b8 Mask files don't always exist in Amiga version of BRA, in paricular NULL.msk.
svn-id: r33394
2008-07-29 04:06:10 +00:00
Travis Howell fd40cb4342 Add check common directories, in loadScenery() for Amiga version of BRA.
svn-id: r33393
2008-07-29 04:00:07 +00:00
Nicola Mettifogo c8400e9725 * Fixed positioning of balloons and faces in BRA (dos, at least).
* Adapted loading of faces.

svn-id: r33392
2008-07-29 03:14:35 +00:00
Christopher Page 6023e665a9 Added --list-saves support for SAGA
svn-id: r33391
2008-07-29 02:12:07 +00:00
Christopher Page c318987ff5 Added --list-saves support for QUEEN
svn-id: r33390
2008-07-29 01:52:29 +00:00
Max Horn e5c09b018a BASE: in runGame, do not set addDefaultDirectory() the game path before invoking createInstance() -- detectors must use FSNode for detection, not rely on File::open
svn-id: r33389
2008-07-29 00:54:28 +00:00
Max Horn d848543ee4 Changed advanced detector to *always* use the FSNode API for detection (i.e. killed second code path which used File::open trial&error directory 'scanning')
svn-id: r33388
2008-07-29 00:50:12 +00:00
Max Horn e1520c6462 Changed output of --test-detector: multiple hits with same gameid now only are a warning, not a failure
svn-id: r33387
2008-07-29 00:49:44 +00:00
Max Horn 4a9104515c SDL: Properly init vars related to mixer double buffering
svn-id: r33385
2008-07-29 00:02:06 +00:00
Nicola Mettifogo 7baf727790 Enforcing use of nullZonePtr only for nulling out pointers, as it is useless for comparisons.
svn-id: r33384
2008-07-28 23:21:03 +00:00
Max Horn 09f70b6408 Fixing 'warning: comparison of unsigned expression < 0 is always false'
svn-id: r33383
2008-07-28 22:21:11 +00:00
Kari Salminen d2639f0c84 Fixed crash when running Operation Stealth introduced in r33339 (There are actually 256 global variables although only 255 of them are saved and loaded from savegames. The last one is VAR_BYPASS_PROTECTION and it is written to in the mainLoop so that's why there was a crash).
svn-id: r33380
2008-07-28 16:46:20 +00:00
Kari Salminen add07fceaa Added loading of temporary Operation Stealth savegames. Needs testing!
- Music related settings and adBgVar0 & adBgVar1 aren't loaded currently.
Modified resetEngine to also reset more of the Operation Stealth specific variables.
Added getter for background scrolling value.
Changed additional background indices 1 & 2 from byte to uint16.
Made savegame loading functions return !in.ioFailed() as return value instead of true as previously.

svn-id: r33379
2008-07-28 16:02:40 +00:00
Nicola Mettifogo ec04a81e81 Yet another hack to deal with labels... Must rethink this crap from scratch.
svn-id: r33377
2008-07-28 14:23:49 +00:00
Nicola Mettifogo 30d943fe2f Moved validation step from revision 33363, so that it is executed for all animations.
svn-id: r33376
2008-07-28 14:22:44 +00:00
Nicola Mettifogo a5d225d438 Fixed loading of static items.
svn-id: r33375
2008-07-28 14:02:46 +00:00
Filippos Karapetis b67db7baf5 Cleanup
svn-id: r33373
2008-07-28 12:46:30 +00:00
Nicola Mettifogo a1557bd776 Pick up/drop/open/close actions are now available in game.
svn-id: r33371
2008-07-28 11:50:36 +00:00
Nicola Mettifogo fb388deb99 Implemented opcodes for picking up/dropping/opening/closing items.
svn-id: r33370
2008-07-28 11:48:04 +00:00
Nicola Mettifogo f4ef55a2e5 Tiny readability aid for parser code.
svn-id: r33369
2008-07-28 11:47:03 +00:00
Kari Salminen b08288c1cd Added remaining load functions needed for the Operation Stealth savegame format loading (loadSeqList and loadZoneQuery). Not used yet.
svn-id: r33367
2008-07-28 10:54:53 +00:00
Kari Salminen c23f805a7f Cut Future Wars savegame loading routine into parts that can be reused when loading the Operation Stealth savegame format.
svn-id: r33366
2008-07-28 10:44:54 +00:00
Kari Salminen 50088df80f Now detects temporary Operation Stealth savegame format and saves it. No loading yet.
svn-id: r33365
2008-07-28 10:09:00 +00:00
Nicola Mettifogo 5d2e25ee11 Preliminary code for traps.
svn-id: r33364
2008-07-28 09:00:00 +00:00
Nicola Mettifogo c6cbf1f144 Added a post processing step to runScripts, so that Animation can be validated after buggy scripts have been executed.
svn-id: r33363
2008-07-28 08:56:37 +00:00
Kari Salminen 16fe053ab4 Made the savegame loading routine choose between loading a Future Wars or an Operation Stealth savegame format.
Added a stub for loading the Operation Stealth's temporary savegame format (Not yet implemented).
Made mouse cursor change to a disk icon when loading a savegame and back to normal after its done.

svn-id: r33362
2008-07-28 08:44:49 +00:00
Travis Howell b5a7735ffc Correct character name set by character location parser.
svn-id: r33361
2008-07-28 08:44:14 +00:00