Commit Graph

543 Commits

Author SHA1 Message Date
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
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn
ae75b9780c DRASCULA: 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
D G Turner
889f5d119a DRASCULA: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 02:53:48 +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
Marcus Comstedt
379b3104a4 DRASCULA: Handle pitch in code using lockScreen()
The surface returned by OSystem::lockScreen() can have a pitch which
differs from w * bytesPerPixel, so modify the code to take this into
account.  Fixes FMV problems on Dreamcast.
2011-05-05 00:04:10 +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
Thierry Crozat
c2eb927ab3 DRASCULA: Avoid crash in engine destructor after it failed to start.
This happens for example if the drascula.dat file is not found.
2011-04-24 14:39:50 +01: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
a3616473aa DRASACULA: Init volume levels on startup 2011-03-19 16:04:52 +01:00
Johannes Schickel
0e7dc36792 DRASCULA: Fix a style related warning for WinCE specific code. 2011-03-08 20:11:13 +01:00
Johannes Schickel
b26f30b987 DRASCULA: Adapt to setPalette RGBA->RGB change. 2011-02-19 21:19:45 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Filippos Karapetis
fc02bd3722 DRASCULA: Fixed a warning
svn-id: r55685
2011-01-31 15:05:45 +00:00
David Turner
96174d6842 DRASCULA: Fixed Code to allow Quit/RTL Function and avoid Memory Leakage.
A memory leakage was traced down to a failure to call the engine destructor.
This was due to the engine directly calling OSystem quit() i.e. _system->quit(), rather than
just allowing engine::run() to return.
Have removed this code and implemented the changes required to allow graceful Quit/RTL to occur.

svn-id: r55583
2011-01-28 08:07:50 +00:00
David Turner
44035c3033 DRASCULA: Remove unecessary destructor from ArchiveMan.
svn-id: r55581
2011-01-28 02:30:25 +00:00
David Turner
c17e3d38bd DRASCULA: Fix for Duplicate Registering of Archive.
A warning occurs that the archive, Packet.001 has been added twice.
This is due to a hack to get the detector priority listing correct.
This fix prevents this causing a multiple add of the same archive.

svn-id: r55580
2011-01-28 01:09:27 +00:00
David Turner
e2abf3b000 DRASCULA: Fix minor cut and paste error in Console "room" command.
svn-id: r55579
2011-01-28 01:05:17 +00:00
David Turner
590ce4762e DRASCULA: Fix uninitialized reads of mouse position variables.
svn-id: r55578
2011-01-28 01:04:42 +00:00
David Turner
0760c92908 DRASCULA: Fix Memory Leak in drascula.dat Loading.
svn-id: r55566
2011-01-27 14:07:45 +00:00
David Turner
73a440cfe2 DRASCULA: Fix Memory Leaks in Rooms Table.
Minor whitespace fixes as well.

svn-id: r55560
2011-01-27 07:58:57 +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
059944e59c COMMON: Push #include audiocd.h in system.h out to .cpp files
svn-id: r54148
2010-11-08 23:07:42 +00:00
Max Horn
82e473bc3b BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
This commit contains the AudioCDManager changes from the gsoc2010-opengl
branch. The other changes in that branch are restricted to the backends
directory only (plus configure).

The Nintendo DS and Dreamcast ports still need to be ported over to
the new Audio CD system, but that should be fairly easy to do.

svn-id: r54147
2010-11-08 22:53:36 +00:00
Johannes Schickel
a05e9a6842 DRASCULA: Add GUIO_NOLAUNCHLOAD to the detection flags.
svn-id: r54125
2010-11-07 19:13:08 +00:00
Max Horn
c5598664ce DETECTOR: Get rid of ADGF_KEEPMATCH
Also fix some typos, and minor tweaks

svn-id: r54118
2010-11-07 17:15:27 +00:00
Max Horn
4ccce19876 ENGINES: Enhance namespace comments a bit
svn-id: r53484
2010-10-15 12:48:19 +00:00
Eugene Sandulenko
9b9e8f7d8d DRASCULA: Fix some code analysis warnings (bug #3087830)
svn-id: r53473
2010-10-15 09:08:54 +00:00
Johannes Schickel
75e8452b6e OPENGL: Merged from trunk, from rev 52105 to 53396.
This includes an rather hacky attempt to merge all the recent gp2x backend
changes into the branch. I suppose the gp2x backend and probably all new
backends, i.e. gph, dingux etc., might not compile anymore.

Since I have no way of testing those it would be nice if porters could look
into getting those up to speed in this branch.

svn-id: r53399
2010-10-13 03:57:44 +00:00
Thierry Crozat
77f57cd8f8 DRASCULA: Add MD5 for improved French version of the game
svn-id: r53034
2010-10-05 20:11:19 +00:00
Torbjörn Andersson
b7911ef0f4 DRASCULA: Play the English "von Braun" track
The workaround is no longer needed since we provide the previously
missing track. It shouldn't break the game if you play from the CD
either, as the timing appears to be hardwired rather than keyed to
the music.

svn-id: r52866
2010-09-23 20:01:08 +00:00
Torbjörn Andersson
c63553c234 DRASCULA: Keep keyboard buffer flushed while waiting for conversation
Otherwise buffered-up key presses can cause dialog to be skipped once
the player finally picks a conversation option.

svn-id: r52850
2010-09-21 20:51:45 +00:00
Torbjörn Andersson
76f2d3d78b DRASCULA: Fix bug #3069977 ("Grafic Glitches in text")
If response() loads an image into backSurface, we need to restore the
conversation charset to it once we're done. This may very well fix a
few other similar bugs, but I haven't verified that.

svn-id: r52845
2010-09-21 17:57:02 +00:00
Torbjörn Andersson
88e25e6f25 DRASCULA: Fix invalid memory access on inventory screen
When clicking outside of all inventory objects, the whichObject()
function would return 43, which is an invalid inventoryObjects[]
index. I think that's what caused it to crash for me. There are a
few other inventoryObjects[]-related changes as well.

svn-id: r52843
2010-09-21 17:18:32 +00:00
Alejandro Marzini
fb4086cadb Merged from trunk, from Rev 50841 to HEAD
svn-id: r51495
2010-07-30 05:28:09 +00:00
Torbjörn Andersson
f98fa72ef3 Changed abs() to ABS() in a few places.
svn-id: r50890
2010-07-14 17:02:14 +00:00
Alejandro Marzini
609e08d5db Merged from trunk, from Rev 49499 to HEAD
svn-id: r50840
2010-07-13 04:31:15 +00:00
Willem Jan Palenstijn
7c7054dbd1 Remove unnecessary svn:executable properties
svn-id: r49870
2010-06-15 17:14:38 +00:00
Eugene Sandulenko
44a39ffbc6 AdvancedDetector: Add new parameter directoryGlobs.
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.

svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko
2e20a48f90 Drascula: improve responsivity during pauses and palette updates.
svn-id: r49722
2010-06-15 10:24:38 +00:00
Eugene Sandulenko
508256a71e Drascula: Fix bug #2011470.
Bug #2011470: "DRASCULA: slowdown when you hold mouse buttons" fixed
by changing right mouse semantic. Now the items menu showed on
button up instead mouse down like earlier.

svn-id: r49721
2010-06-15 10:24:19 +00:00
Eugene Sandulenko
08c5d37da4 Drascula: Fix bug #2827166.
Bug #2827166: "DRASCULA: Repeating conversations". It looked like
bug in original engine.

svn-id: r49720
2010-06-15 10:23:58 +00:00
Eugene Sandulenko
e71caf8600 Drascula: Fix bug #2827169.
Bug #2827169: "DRASCULA: gfx glitch in pendulum room" fixed by
rearranging draw sequence.

svn-id: r49719
2010-06-15 10:23:36 +00:00
Eugene Sandulenko
02a76b2e91 Drascula: add even more responsiveness
svn-id: r49718
2010-06-15 10:23:17 +00:00
Eugene Sandulenko
ba25faaf42 Drascula: more responsiveness.
svn-id: r49717
2010-06-15 10:22:56 +00:00
Eugene Sandulenko
e4d77cf098 Drascula: Add responsiveness while talking.
svn-id: r49716
2010-06-15 10:22:39 +00:00