1346 Commits

Author SHA1 Message Date
Max Horn
d0876b06ed Remove some unused variables
svn-id: r44853
2009-10-09 22:21:45 +00:00
Max Horn
696fd7af20 Reduce usage of Common::String::emptyString
svn-id: r44603
2009-10-04 11:58:52 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Nicola Mettifogo
9be8a6e4f6 Simplified inventory handling (too much information hiding will kill you).
svn-id: r44485
2009-09-30 13:41:19 +00:00
Nicola Mettifogo
eb5beef6a1 * Added secondary inventories for BRA.
* Added comments where code must be added/updated to support multiple inventories.

svn-id: r44476
2009-09-30 07:47:58 +00:00
Nicola Mettifogo
e660f31ed8 Provide only the data that is strictly needed when creating a new Inventory.
svn-id: r44475
2009-09-30 07:09:07 +00:00
Filippos Karapetis
b4f1960318 Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb Fixed some more warnings about unreachable code
svn-id: r44300
2009-09-24 10:15:50 +00:00
Torbjörn Andersson
762d2dc03a Removed unnecessary semi-colons.
svn-id: r43409
2009-08-15 14:13:48 +00:00
Nicola Mettifogo
a811c1cfea When renaming old savefiles for Nippon Safes, don't assert if a file that matches the pattern game.* and is not a savefile is found in the savepath.
svn-id: r42958
2009-07-31 12:39:31 +00:00
Nicola Mettifogo
7fd0890e14 Cleanup the header file as I removed one function in r42922.
svn-id: r42924
2009-07-30 13:44:50 +00:00
Nicola Mettifogo
000dd0a880 Fixed typo in user message.
svn-id: r42923
2009-07-30 13:42:08 +00:00
Nicola Mettifogo
4f85e9d00d Use SaveFileMan::listSaveFiles() to build list of old savegames for Nippon Safes.
svn-id: r42922
2009-07-30 13:41:22 +00:00
Nicola Mettifogo
83c8679127 Moved parser functions arrays to file scope, as they were tripping up the obsolete gcc used for the BeOS/Haiku port. If anybody can work out a better solution please apply it, because this makes me sick.
svn-id: r42793
2009-07-26 08:37:03 +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
Filippos Karapetis
8a783bdd76 Renamed sound/iff.* to sound/iff_sound.* to fix an issue with the upcoming changes to the MSVC project files (sound/iff.* produces iff.obj, which clashes with iff.obj from graphics/iff.*)
svn-id: r42287
2009-07-09 13:17:46 +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
Nicola Mettifogo
657e37985e Cleanup of sound code.
svn-id: r41461
2009-06-12 07:55:44 +00:00
Nicola Mettifogo
df1534ffd0 * Replaced the A8SVXDecoder class with a function to return an AudioStream in trunk/sound/.
* Refactored sound code in Parallaction to use the new Audio::make8SVXStream.

svn-id: r41460
2009-06-12 07:18:01 +00:00
Nicola Mettifogo
5915e60452 Removed a leftover printf().
svn-id: r41459
2009-06-12 06:20:11 +00:00
Nicola Mettifogo
5fccc0f98d * Final version of the IFF parsing code.
* Refactored ILBMDecoder usage from disk code.

svn-id: r41458
2009-06-12 05:03:18 +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
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +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
Nicola Mettifogo
465da49782 Made BRA demos start again by partially reverting commit 39773. Multiple inventory support must be done somehow differently.
svn-id: r40750
2009-05-21 08:06:15 +00:00
Nicola Mettifogo
3607c63758 Refactoring.
svn-id: r40210
2009-04-29 16:59:10 +00:00
Nicola Mettifogo
a8cccd0ced Removed obsolete TODO.
svn-id: r40194
2009-04-29 07:33:01 +00:00
Travis Howell
804cd38c83 Enable music and sound effects in BRA, by default.
svn-id: r40193
2009-04-29 05:47:10 +00:00
Nicola Mettifogo
9a78f6ef41 * Refactored existing save/load code to ease extension
* Added load/save dialogs using ScummVM's overlay for the moment (no actual saving is performed yet)
* Plugged the main menu so that it displays the load dialog when needed.

svn-id: r40191
2009-04-29 05:30:58 +00:00
Nicola Mettifogo
01fceec37c Implemented quit dialog box in BRA.
svn-id: r40181
2009-04-28 15:00:56 +00:00
Nicola Mettifogo
9108871833 Added in-game menu for BRA. Load/save is not supported yet.
svn-id: r40176
2009-04-28 12:25:41 +00:00
Nicola Mettifogo
19bd929a5d * Disk code cleanup.
* Added ability to load in-game menu graphics.

svn-id: r40175
2009-04-28 12:23:52 +00:00
Nicola Mettifogo
8151a1d878 Removed useless references to the global _vm.
svn-id: r39879
2009-04-06 17:31:22 +00:00
Nicola Mettifogo
0e05ec8cc8 Cleanup of Balloon and Dialogue code:
* moved version-specific code into DialogueManager's derivatives
* reworked construction of BalloonManager's derivatives
* moved a couple of globals used in dialogues (NS specific) to engine

svn-id: r39878
2009-04-06 17:21:23 +00:00
Nicola Mettifogo
20bdfe4173 Moved background and character loading code from LocationParser_br to the engine for BRA.
svn-id: r39814
2009-04-03 17:09:12 +00:00
Nicola Mettifogo
58df840a13 Moved Nippon Safes specific code from Parallaction to Parallaction_ns and adapted client code.
svn-id: r39813
2009-04-03 16:32:47 +00:00
Max Horn
fb6d0a7119 PARALLACTION: Fix silly Mingw 'shadowed declaration' warnings
svn-id: r39809
2009-04-03 14:53:15 +00:00
Nicola Mettifogo
0a2ff7f18f Fixed dialogue balloon appearing in the wrong position after commit 39772.
svn-id: r39774
2009-03-31 17:00:36 +00:00
Nicola Mettifogo
86a1926c19 Added basic multiple inventory support. This will be used for the GIVE and SWAP commands.
svn-id: r39773
2009-03-31 15:45:44 +00:00
Nicola Mettifogo
9880a2e578 There have been subclasses of DialogueManager for a while, so now we use their constructors for something.
svn-id: r39772
2009-03-31 14:35:06 +00:00
Nicola Mettifogo
b08b0f64af Character doesn't need a reference to the engine anymore.
svn-id: r39770
2009-03-31 06:49:44 +00:00
Johannes Schickel
a619443dbc PARALLACTION: Commit of parentheses patch from salty-horse. (from -devel "Enabling -Wparentheses in the Makefile").
svn-id: r39760
2009-03-30 12:09:03 +00:00
Nicola Mettifogo
5fa83a26e6 Implemented IFCHAR command. This makes part 3 of BRA completely explorable.
svn-id: r39742
2009-03-29 14:09:24 +00:00
Nicola Mettifogo
34c2546fdd Added declaration for Amiga BRA callables.
svn-id: r39741
2009-03-29 14:03:11 +00:00
Nicola Mettifogo
666f0720ab (Re)link bounding animations after location has been completely parsed. This avoids problems due to forward references.
svn-id: r39740
2009-03-29 13:56:16 +00:00
Nicola Mettifogo
340b0e632e Ensure zone and animation flags are restored when a location is reloaded. This should definitely fix bug #2718462.
svn-id: r39739
2009-03-29 13:17:34 +00:00
Nicola Mettifogo
011b73a09b Commands now evaluate their reference Zone at runtime, thus handling of forward references in the parser is no more needed.
svn-id: r39738
2009-03-29 12:41:00 +00:00
Nicola Mettifogo
01812f0830 Fixed several free/delete mismatches.
svn-id: r39736
2009-03-29 12:11:10 +00:00
Nicola Mettifogo
8b3f6b0299 Set main menu text height to the actual font height.
svn-id: r39735
2009-03-29 12:10:17 +00:00
Nicola Mettifogo
28465d73bb Merged CommandData into Command.
svn-id: r39732
2009-03-29 10:18:09 +00:00