Commit Graph

614 Commits

Author SHA1 Message Date
Johannes Schickel
9916d2e99c CINE: Add some comments to the MT-32 instrument code. 2011-12-19 01:10:48 +01:00
Johannes Schickel
d14e75cdc7 CINE: Make findNote behave like in the original.
This also reverts 42fd697544, which was wrong,
since I misread the assembly. Ooops.
2011-12-11 06:24:33 +01:00
Johannes Schickel
54819a5448 CINE: Fall back to AdLib, in case a user tries to use the MT-32 output with an GM device.
The driver is really specific to the Roland MT-32 right now, since it uses
MT-32 specific sysEx messages to setup instruments etc.
2011-12-11 05:11:28 +01:00
Johannes Schickel
6ba090b45a CINE: Make PC sound code thread safe, since the MIDI output might run the callback in an extra thread. 2011-12-11 05:04:08 +01:00
Johannes Schickel
42fd697544 CINE: Make findNote behave a bit more like the original. 2011-12-11 05:04:04 +01:00
Johannes Schickel
c48af08a0b CINE: Implement MT-32 output driver.
The driver is based on Future Wars. I do not own Operation Stealth, thus I do
not know whether it works fine for it.
2011-12-11 05:03:57 +01:00
Strangerke
bab4b6f729 LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE) 2011-11-16 22:38:58 +01:00
Johannes Schickel
61795739f8 COMMON: Rename Common::set_to to Common::fill.
This makes the name match with the name of the STL function with the same
behavior.
2011-11-16 18:06:30 +01:00
Eugene Sandulenko
95f890c350 CINE: Fix warnings 2011-11-02 23:04:49 +00:00
Eugene Sandulenko
32972a5ffb AD: Switched rest of the engines to new GUIO 2011-10-23 17:53:13 +01:00
Torbjörn Andersson
e6fbc4fb88 CINE: Remove unused variable 'di'
As far as I can tell, it converted the selection back to Y coordinate
for no apparent reason.
2011-10-09 10:16:04 +02:00
Johannes Schickel
5739e86e0c CINE: Made some static data const. 2011-09-08 19:51:05 +02:00
eriktorbjorn
5dd8f2575b JANITORIAL: Silence a couple of "variable set but not used" warnings. 2011-06-30 23:47:10 +02:00
Filippos Karapetis
12635ee198 CINE: Fixed compilation when DUMP_SCRIPTS is set 2011-06-26 16:00:22 +03:00
Littleboy
b694a78f62 ANALYSIS: Add static casts to is* functions
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results.
See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-23 08:52:52 -04:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
593b929047 DETECTOR: Separate code for handling obsolete gameids from advanced detector
This includes a renaming of ADObsoleteGameID to Engine::ObsoleteGameID,
and AdvancedDetector::findGameID now is Engines::findGameID.

Doxygen comments were added or improved
2011-06-14 18:52:07 +02:00
Max Horn
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn
3c837a39f0 CINE: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:41 +02:00
Max Horn
4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
Max Horn
477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
D G Turner
0d379b3783 CINE: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 03:44:31 +01:00
Thierry Crozat
d2a55b42c9 ENGINES: Further unify engine names 2011-05-22 12:47:35 +01:00
Max Horn
4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
Thierry Crozat
3c59e37035 ENGINES: Unify engine names
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-16 00:11:32 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
dhewg
d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
dhewg
e5056cab91 CINE: Init volume levels on startup
Add syncSoundSettings() to set the volume for kPlainSoundType and
respect the global mute setting
2011-03-19 15:34:57 +01:00
D G Turner
53426e6ed7 CINE: Add Opcode 0x40 (o1_closePart) to Operation Stealth.
This silences the warnings and a basic playtest has shown no issues.
2011-03-16 22:39:42 +00:00
Johannes Schickel
9623ea05d6 CINE: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
2d1c8a3533 ALL: Fix whitespaces / indention
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
David Turner
0089d3b338 CINE: Fix for Operation Stealth assertion when caught by rat in Scene 8 Rats' Maze.
This converts the assertion on selection of null background into a test and warning.

svn-id: r55201
2011-01-11 16:50:26 +00:00
David Turner
71c7ae9fbb CINE: Extend "labyrinthCheat" console command to cover Operation Stealth Scene 8 (Rats' Maze).
These arcade puzzles are hard, but solvable. This command is intended to aid debugging and rapid playtesting.

svn-id: r55198
2011-01-11 01:35:38 +00:00
David Turner
a1739f7244 CINE: Modified Palette::rotateRight() function to cope with all positive values of rotation.
This fixes the assert in Operation Stealth in Scene 7 when the Russians mount the Jetskis.

svn-id: r55195
2011-01-10 00:35:45 +00:00
David Turner
c0da18e9b8 CINE: Added fix for Operation Stealth Loss of Inventory after Scene 6 Labyrinth Maze.
It is now possible to open the office safe and get the envelope, though the engine now asserts with a palette issue in the next scene as the Russians board the Jetskis.

svn-id: r55194
2011-01-09 22:54:04 +00:00
David Turner
d54fa49b5f CINE: Add console command "labyrinthCheat" to help with Operation Stealth Playtesting.
This command activates a cheat for the Operation Stealth Scene 6 arcade section i.e. Chased by Guards in Labyrinths in Otto's Mansion. These puzzles are quite hard and thus discourage playtesting beyond this point, especially since it is not possible to save (This may be a bug compared to the original interpreter).

Also, added extra debug output to aid script debug output.

svn-id: r55189
2011-01-09 18:12:30 +00:00
David Turner
42713ef1fc CINE: Add FIXME about Operation Stealth Memory Leak.
svn-id: r55186
2011-01-09 15:53:03 +00:00
Arnaud Boutonné
d063b074cd JANITORIAL: Suppress some useless includes
svn-id: r55091
2011-01-02 14:06:42 +00:00
David Turner
f96c8f6e39 CINE: Fix CollisionPage Uninitialised Reads in Operation Stealth.
The collisionPage is only initialised with values when loadCtFw() / loadCtOS() is called.
However, currently during the display of the Delphine Software Logo in Operation Stealth,
checkCollision() is called, but the collisionPage has not been loaded.
To fix the invalid reads, have added code to set the page to zero after allocation.
Shouldn't cause any issues to FW as this will load over the top anyway.

Have also added debug output around this behaviour so that if this is not sufficient i.e. a collision page load is actually missing, then this will aid investigation.

svn-id: r55071
2010-12-31 09:14:49 +00:00
David Turner
c9330fb79e CINE: Close Memory Leak in PCSoundFxPlayer.
This leakage was reported by Valgrind while playing Operation Stealth.

svn-id: r55070
2010-12-31 09:07:44 +00:00
David Turner
7bc8fe8ef5 CINE: Fix Memory Leak in PCSoundFxPlayer.
Found this using Valgrind when loading a Future Wars savegame from the launcher.
Occurs since the load() method called stop() but this did not unload() the allocated playing
resource data unless it was still playing. Fixed in stop() by calling unload() in all cases.

svn-id: r55059
2010-12-29 09:53:58 +00:00
David Turner
fef667cbe9 CINE: Fixed mismatched deallocation in ScriptVars reported by Valgrind.
svn-id: r55058
2010-12-29 09:50:48 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
David Turner
0119a659b5 CINE: Added basic debugging console to engine
Since CINE uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.

svn-id: r54115
2010-11-07 15:02:41 +00:00