Commit Graph

192 Commits

Author SHA1 Message Date
Neil Millstone
c43f68e554 Fix bug where an object was accessed after it was deleted in cine engine
svn-id: r27870
2007-07-02 22:42:35 +00:00
Max Horn
2fa0a5c457 Cleaning up after myself (I blame it on, err, uhh... the Vogons?)
svn-id: r27625
2007-06-22 21:16:07 +00:00
Max Horn
54d668ac13 Changed more code to use Common::KEYCODE_ enum
svn-id: r27624
2007-06-22 21:10:57 +00:00
Torbjörn Andersson
8e2fd2ee73 Fixed freeing of invalid pointer, which would cause Operation Stealth to crash.
I don't know if the loadSet() / loadSetAbs() functions are every used in Future
Wars. If so, we should commit this to the branch as well.

svn-id: r27590
2007-06-21 17:24:27 +00:00
Filippos Karapetis
5dc568e7a7 Fix for #1733238 - FW: crash in copier room
svn-id: r27376
2007-06-12 12:49:07 +00:00
Eugene Sandulenko
6e5b70f5e9 Patch #1733764: "Fallback detection patch". GSoC student.
svn-id: r27375
2007-06-12 12:22:25 +00:00
Torbjörn Andersson
059ba7326c Fixed some Valgrind warnings (overlapping source and destination in strcpy()).
svn-id: r27207
2007-06-08 19:29:48 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Gregory Montoir
45b721d3cc cleanup, don't rely on assert() to ensure a gamefile/savefile is opened. Also removed the use of Common::File global objects.
svn-id: r27021
2007-05-30 18:43:28 +00:00
Max Horn
0de170c980 Removing useless common/fs.h includes
svn-id: r27018
2007-05-30 17:44:52 +00:00
Gregory Montoir
137140b7e9 removed some resource related memory leaks
svn-id: r27007
2007-05-29 21:06:07 +00:00
Gregory Montoir
73210b4aa3 added code for freePartRange, freePartEntry and freeOverlay (also renamed some functions and variables).
svn-id: r27006
2007-05-29 20:22:20 +00:00
Gregory Montoir
659e7ed76e sync resource unpacking code of cruise with cine
svn-id: r26933
2007-05-24 21:19:52 +00:00
Gregory Montoir
e0159324cc some fixes for the music in Amiga OS Demo
svn-id: r26886
2007-05-20 11:50:06 +00:00
Gregory Montoir
b37c83448a made the resource loading function case insensitive to the filename and removed a NULL dereference if a file is not found
svn-id: r26885
2007-05-20 11:48:53 +00:00
Gregory Montoir
4aa3ec63de when reading a string from a script, skip the '\0' trailing char (less opcode '0' executions...)
svn-id: r26880
2007-05-19 21:16:31 +00:00
Gregory Montoir
3afd0d9557 removed 4 unused offscreen buffers ; also changed several 64k buffers to be dynamically allocated.
svn-id: r26879
2007-05-19 21:12:10 +00:00
Max Horn
a165d96fd3 Fix preprocessor error caused by undefined symbol DEBUG_SPRITE_MASK
svn-id: r26874
2007-05-19 20:06:50 +00:00
Gregory Montoir
bde5404a4e added basic support for Amiga music playback
svn-id: r26870
2007-05-19 12:08:41 +00:00
Gregory Montoir
93e41222b5 added debug code to display sprite masks
svn-id: r26865
2007-05-18 09:19:35 +00:00
Gregory Montoir
e16e11fdf2 added missing MIN() calls
svn-id: r26864
2007-05-18 09:14:27 +00:00
Gregory Montoir
1b3458e429 moved gfx related functions from various.cpp/.h to gfx.cpp/.h and fixed indentation of previous commit
svn-id: r26863
2007-05-17 22:26:05 +00:00
Gregory Montoir
3ab295a0ee removed unneeded if blocks
svn-id: r26862
2007-05-17 22:18:51 +00:00
Gregory Montoir
e9827d0884 added code for gfxSpriteFunc1 and gfxSpriteFunc2, which are used for sprite masking (see also bug #1624797)
svn-id: r26861
2007-05-17 22:13:31 +00:00
Gregory Montoir
97e6e4aea8 this should fix script label offsets computation for OS
svn-id: r26841
2007-05-14 21:52:06 +00:00
Gregory Montoir
b5aa521a75 added basic support for sounds playback in Amiga versions (only tested with the demos)
svn-id: r26837
2007-05-13 16:11:19 +00:00
Gregory Montoir
e6ef2348a4 removed duplicated code (BASESON datafiles can be loaded with the existing bundle related functions)
svn-id: r26836
2007-05-13 16:07:33 +00:00
Gregory Montoir
a05d455ae8 minor fixes to the adlib sound code, this should help bug #1599270
svn-id: r26820
2007-05-13 02:11:38 +00:00
Max Horn
eb6318e9fa Added FIXME comment to CINE regarding an odd warning in processSeqListElement
svn-id: r26248
2007-03-19 22:30:28 +00:00
Max Horn
f1497d5aa9 CINE: Make use of EventManager::getMousePos
svn-id: r26222
2007-03-18 18:34:16 +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
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
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
Chris Apers
227d83ea6e Bad hack to make this engine works on PalmOS (compiler still seems to hate some global objects)
svn-id: r25684
2007-02-18 12:21:25 +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
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
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
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
Eugene Sandulenko
7b6bdd231d AdvancedDetector now has built-in fallback detection based on file lists.
Currently only gob engine benefits from it.

svn-id: r25374
2007-02-04 03:10:27 +00:00
Torbjörn Andersson
0a18259d78 Used Fingolfin's workaround for a bogus (?) warning produced by some versions
of GCC. (Not the one he's using, though, which is why I'm doing this instead.)

svn-id: r25327
2007-02-01 20:16:32 +00:00
Eugene Sandulenko
adcfd2cc5f Now AdvancedDetector could use single ID per engine. Also it can suggest
more complex game IDs with platform and language specified.

AGI engine benefits most from that.
Also turned Cine, Parallaction and SAGA to single ID, autoupgrading old ID.

svn-id: r25269
2007-01-29 23:25:51 +00:00
Eugene Sandulenko
93687d376b Add more paramteres to AdvancedDetector. Not used yet.
svn-id: r25241
2007-01-28 07:31:26 +00:00
Max Horn
d70c83bd4b Lots of cleanup in the AdvancedDetector
svn-id: r25194
2007-01-25 21:16:57 +00:00
Eugene Sandulenko
bb3cc79bc6 Reduce #include dependencies
svn-id: r25178
2007-01-25 01:05:25 +00:00
Eugene Sandulenko
318210ad96 Add optional size parameter to ADGameFileDescription. Not used now.
svn-id: r25164
2007-01-24 22:42:44 +00:00
Eugene Sandulenko
edd2422a55 Hide all AdvacedDetector parameters into a structure for easier maintenance
and extensibility

svn-id: r25163
2007-01-24 22:24:52 +00:00
Eugene Sandulenko
d3b0ff8ade Reduce dependency from common/advancedDetector.h
svn-id: r25156
2007-01-21 20:24:38 +00:00
Max Horn
fef501c205 openForSaving can fail, so it should be handled gracefully -- but better to assert out in a controlled manner than o invoke methods on a NULL pointer, right? :-)
svn-id: r25151
2007-01-21 15:19:30 +00:00