Commit Graph

281 Commits

Author SHA1 Message Date
Max Horn
92c896d883 Patch #2973290: Semicolon cleanup
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
cac0ac66e2 COMMON: Get rid of Common::StringList
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
c934642bdb COMMON: Move typedef StringList from str.h to new header str-array.h
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.

svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
d78dba3bca COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
2010-03-18 15:07:11 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
dc5e08e623 Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
2010-01-19 22:30:33 +00:00
Max Horn
557bb394de Get rid of Mixer::FLAG_AUTOFREE.
Also fix several recently introduced new/delete vs. malloc/free mismatches.

svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
b8f2a3a342 cleanup
svn-id: r47333
2010-01-16 21:34:36 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Max Horn
be8371fb07 Replace AppendableAudioStream by QueuingAudioStream
svn-id: r47189
2010-01-09 00:19:13 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Torbjörn Andersson
72eb9ec9ea Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary.

svn-id: r46941
2010-01-03 19:37:43 +00:00
Jordi Vilalta Prat
a22fd021e9 Move the LZSS code to the Groovie namespace.
svn-id: r46867
2010-01-02 00:07:20 +00:00
Scott Thomas
a55e0531e8 11H: Add some more opcode stubs
svn-id: r46524
2009-12-24 08:35:11 +00:00
Scott Thomas
b2ae0e56c5 Tweak Groovie2 video buffer handling
svn-id: r46523
2009-12-24 08:33:37 +00:00
Max Horn
c8873d8492 Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
svn-id: r46316
2009-12-09 18:12:51 +00:00
Max Horn
5f178e8650 Fix some MSVC warnings (part of patch #2909981)
svn-id: r46291
2009-12-08 20:44:57 +00:00
Scott Thomas
6e26b4a1c8 Brief Groovie namespace comment
svn-id: r46161
2009-11-27 06:46:07 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
ebcb9b0ff0 GROOVIE: Reduce header interdependency
svn-id: r46116
2009-11-23 23:53:25 +00:00
Matthew Hoops
49a8462c5b Capitalize the word Sequel in The 11th Hour's title.
svn-id: r45643
2009-11-03 21:51:24 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Jordi Vilalta Prat
c7476aa16f Groovie: Fix some styling issues pointed by cppcheck
svn-id: r45411
2009-10-26 19:06:36 +00:00
Torbjörn Andersson
22116b488e Fixed cppcheck warning.
svn-id: r45241
2009-10-19 04:19:11 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Scott Thomas
2fa7fbc1a5 T7G: Proper fix for #2847539 - remove ambiguity in multi-byte script reads.
svn-id: r44524
2009-10-01 15:58:15 +00:00
Filippos Karapetis
2dbd096dd5 Changed _script to be a pointer, in order to control its creation/destruction, like the rest of the groovie engine parts, and resolve a potential issue that Microsoft claims to be severe (warning C4355, read more here: http://msdn.microsoft.com/en-us/library/3c594ae3.aspx)
svn-id: r44303
2009-09-24 10:58:00 +00:00
Johannes Schickel
c50940bbf4 Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
2009-09-23 00:15:00 +00:00
Johannes Schickel
1b68bf76ac Wording.
svn-id: r44086
2009-09-14 19:30:46 +00:00
Johannes Schickel
5ed03fcd3a Fix valgrind warning.
svn-id: r44084
2009-09-14 18:40:05 +00:00
Torbjörn Andersson
bcc840c95c Fixed crash when reaching the end of the movie, riggered by recent Stream
changes.

svn-id: r44052
2009-09-13 11:02:39 +00:00
Max Horn
37e51f1575 Fixed some (pedantic) warnings
svn-id: r44015
2009-09-08 22:03:07 +00:00
Scott Thomas
52cf649a65 T7G: Fix bug #2853185 where card puzzle doesn't clean up, resulting in a blank menu in special instances
svn-id: r44009
2009-09-08 06:23:50 +00:00
Scott Thomas
9e7737a653 Groovie: Handle special case for cursor #4
svn-id: r43847
2009-08-31 02:04:24 +00:00
Travis Howell
4b43f63281 Revert revision 43845, to keep configure options for games and game engines clear and consistent.
svn-id: r43846
2009-08-31 01:52:16 +00:00
Jordi Vilalta Prat
c6e84919c8 Added the --enable-unsupported option to enable the detection of the
unsupported games, guarded by the ENABLE_UNSUPPORTED_GAMES define.
It's a generalization of r43843.
Also grouped all the engines options together in the configure help.

svn-id: r43845
2009-08-31 01:25:04 +00:00
Travis Howell
dadbb53350 Add configure option for Groovie 2 games.
svn-id: r43843
2009-08-31 00:39:30 +00:00
Scott Thomas
5791d475f5 Groovie: Initial implementation cursors for Groovie V2
svn-id: r43842
2009-08-30 23:57:43 +00:00
Jordi Vilalta Prat
18c43c1d90 Groovie: Replace sprintf() usage with String::printf()
svn-id: r43827
2009-08-30 16:54:35 +00:00
Scott Thomas
24a9dc8480 T7G: Load VDX frame chunks into a MemoryStream rather than streaming straight from disk (Fix #2839528)
svn-id: r43671
2009-08-23 14:54:56 +00:00
Andre Heider
007f68366f Renamed ENABLE_RGB_COLOR to USE_RGB_COLOR, and added it to config.h to guarantee a consistent build.
svn-id: r43604
2009-08-21 18:16:37 +00:00
Scott Thomas
58f8ec5d57 Groovie: Sync changes from 16bpp branch. Hopefully no regressions sneak in here
svn-id: r43598
2009-08-21 13:57:03 +00:00
Johannes Schickel
b33b90ecd0 Made AGOS, DRASCULA, GOB, GROOVIE, MADE, SCUMM and TINSEL properly stop CD audio playback on engine quit. (This only problem affected playback from CD, not from ripped audio files)
svn-id: r43512
2009-08-18 15:31:26 +00:00
Johannes Schickel
c88cf041a4 Fix warning caused by -Wformat-security.
svn-id: r43446
2009-08-16 17:36:31 +00:00
Scott Thomas
8820b6166e T7G: Fix bug #2831041 by implementing opcode responsible for starting music partway through a video
svn-id: r43068
2009-08-05 13:57:40 +00:00
Scott Thomas
8edc0d0943 T7G: Fix bug #2831046 where save names not shown after loading a save from launcher
svn-id: r43020
2009-08-03 01:19:36 +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
Johannes Schickel
5585e18123 Fix gcc warning (hopefully this is correct).
svn-id: r42635
2009-07-20 22:26:41 +00:00
Eugene Sandulenko
3f6159a968 Proper implementation of microscope puzzle.
svn-id: r42634
2009-07-20 22:15:37 +00:00
Max Horn
baabc623f6 Got rid of two more ioFailed uses
svn-id: r42501
2009-07-15 10:04:50 +00:00
Jordi Vilalta Prat
69a3e2759e Groovie: Improve ROQ timing and audio sync (noticeable at least in the Clandestiny trailer)
svn-id: r42177
2009-07-06 15:23:50 +00:00
Jordi Vilalta Prat
6d3b2ec3af - Refactorized Groovie::MusicPlayer to make it extensible
- Added an empty MusicPlayerMac to let the Macintosh version of The 7th Guest start

svn-id: r42116
2009-07-05 09:34:54 +00:00
Max Horn
cbea1a1193 Added more GCC_PRINTF attributes, and fixed resulting warnings in format strings
svn-id: r42054
2009-07-03 10:40:49 +00:00
Jordi Vilalta Prat
d7308e9e3d Fix groovie's GUI game options
svn-id: r41528
2009-06-14 22:10:17 +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
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Jordi Vilalta Prat
f903e32c51 Groovie: Add non-uniform scaling to the ROQ player
svn-id: r39408
2009-03-15 04:34:00 +00:00
Jordi Vilalta Prat
efa319ff67 Groovie: Added basic alpha channel support to the ROQ player
svn-id: r39406
2009-03-15 03:51:03 +00:00
Eugene Sandulenko
f2a1e593c9 Give more meaningful names to detected entries.
svn-id: r39388
2009-03-14 11:26:46 +00:00
Eugene Sandulenko
57b983604b Avoid polluting of global gameid namespace and restore compatibility with
0.13.0

svn-id: r39387
2009-03-14 10:55:52 +00:00
Jordi Vilalta Prat
3a5a822456 Groovie: We need to save gameids to distinguish different entries detected from the same game files
svn-id: r39358
2009-03-12 14:40:27 +00:00
Scott Thomas
2f61d7d77b - Convert some file references from uint16 to uint32 to suit 11H
- Add some 11H opcodes

svn-id: r39313
2009-03-10 21:54:45 +00:00
Scott Thomas
a4ad40235c Fix graphics corruption in 11H FMV streams
svn-id: r39291
2009-03-10 07:35:06 +00:00
Jordi Vilalta Prat
940f19dc23 Groovie: Initial support for different opcode sets
svn-id: r39282
2009-03-10 00:19:44 +00:00
Jordi Vilalta Prat
047f116515 Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
svn-id: r39132
2009-03-05 12:04:58 +00:00
Max Horn
59b374505f Fixed weirdness in groovie (as reported on scummvm-devel)
svn-id: r39109
2009-03-04 06:08:30 +00:00
Jordi Vilalta Prat
c9d440bf5b Remove extra whitespaces
svn-id: r39024
2009-03-01 09:17:05 +00:00
Jordi Vilalta Prat
e5e733781e Groovie: Merged init() and go() into run()
svn-id: r39023
2009-03-01 09:12:32 +00:00
Max Horn
3fcbda829a Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
svn-id: r39002
2009-03-01 04:30:55 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Henry Bush
d7dea4ff17 T7G: Fix for #2511456. Volume is now only reset to 100 on playing a new track, and the background track starts on beginning of input loop (not at end of main track).
svn-id: r38284
2009-02-15 19:52:44 +00:00
Henry Bush
c137d75784 T7G: print out the current script pos in decimal too (to match ST's decomp's ;-)
svn-id: r38283
2009-02-15 19:45:36 +00:00
Paul Gilbert
4e66e6db70 Fixed compiler warning about loss of precision
svn-id: r38222
2009-02-15 10:32:06 +00:00
Henry Bush
6438c40958 T7G: Fix for 2474078 (hopefully). Check if volume has fallen to correct level at end of applyfading, in case it gets set to correct level during it.
svn-id: r36173
2009-02-01 11:56:12 +00:00
Henry Bush
b1c58328a5 T7G: revert r36125 until I figure out why it broke general midi music
svn-id: r36170
2009-02-01 09:05:23 +00:00
Max Horn
e21f5febdc Don't use g_engine to access the mixer
svn-id: r36147
2009-01-30 15:41:23 +00:00
Max Horn
7cb437b56f Renamed SpecialDebugLevel to DebugChannel
svn-id: r36142
2009-01-30 05:10:24 +00:00
Max Horn
76deee02d6 Some more 'special debug levels' tweaks
svn-id: r36140
2009-01-30 04:52:53 +00:00
Max Horn
de7c89e381 Some work on the 'special debug levels' aka 'engine debug levels' code
svn-id: r36139
2009-01-30 04:42:30 +00:00
Max Horn
28cf213605 Moved AdvancedDetector from common/ to engines/
svn-id: r36132
2009-01-29 22:13:01 +00:00
Henry Bush
a0a82d911c T7G: start background music at start of input loop (0x0B). Should fix 2474078, but might break other things so I'm not going to backport it.
svn-id: r36125
2009-01-28 23:29:19 +00:00
Max Horn
ce39c26d14 -1 is not an uint8. Assuming ones-complement, though, I guess 255 was meant
svn-id: r35865
2009-01-14 18:52:25 +00:00
Jordi Vilalta Prat
4db2899253 Hide the mouse cursor when loading a saved game
svn-id: r35863
2009-01-14 16:05:26 +00:00
Jordi Vilalta Prat
59d41b30ff Show the cursor and update it properly when closing the GMM.
svn-id: r35858
2009-01-14 03:09:19 +00:00
Jordi Vilalta Prat
be346a6b5f - Initialize the current cursor to an invalid one (this removes a glitch when loading from the launcher)
- Removed the _syst attribute in Cursor_t7g

svn-id: r35856
2009-01-14 02:08:44 +00:00
Jordi Vilalta Prat
215af6f3b4 Reduced savegame code duplication and added savegame format versioning.
svn-id: r35855
2009-01-13 23:22:47 +00:00
Jordi Vilalta Prat
cd7ab24dd6 Added const qualifier to (char *) parameter
svn-id: r35854
2009-01-13 23:00:14 +00:00
Jordi Vilalta Prat
6801112956 Fix dithering of scaled videos
svn-id: r35844
2009-01-13 15:40:46 +00:00
Henry Bush
9446bfa503 T7G: Stage one of move to ScummVM's CursorMan: rename groovie one so it doesn't have same name
svn-id: r35793
2009-01-08 23:06:08 +00:00
Henry Bush
8eb7d55eca T7G: Reset midi volume to 100 on starting a track, cleanup
svn-id: r35792
2009-01-08 23:01:34 +00:00
Jordi Vilalta Prat
1f63a1dfcd Fix an invalid access when the quit opcode occupies the last byte of the script, due to the quit status being updated by the event loop
svn-id: r35779
2009-01-07 23:05:28 +00:00
Jordi Vilalta Prat
f07d962734 Complete the ROQ video decoding (there are still a few minor glitches)
svn-id: r35778
2009-01-07 22:35:35 +00:00
Jordi Vilalta Prat
7122248c72 Use the proper samples file name for 11h
svn-id: r35656
2009-01-01 22:49:44 +00:00
Max Horn
6561a7bf36 Set/unified svn:keywords for all *.h and *.cpp files
svn-id: r35651
2009-01-01 17:05:05 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Scott Thomas
bc378bdb8f Fix for dialogue from Stauf and Ego during puzzles.
svn-id: r35620
2008-12-30 10:19:16 +00:00
Eugene Sandulenko
842af1ee4a Add detection for Russian The 7th Guest.
svn-id: r35614
2008-12-29 16:58:48 +00:00
Scott Thomas
d8abe49a78 T7G graphics enhancement: Add the unused skeleton graphics to the maze
svn-id: r35598
2008-12-29 06:23:52 +00:00
Jordi Vilalta Prat
6fed0af5d1 Allocate just the required memory for scripts (spotted by sev)
svn-id: r35525
2008-12-24 15:30:31 +00:00
Scott Thomas
37bb8daf3d T7G: Implement runtime script fix for cake puzzle bug.
svn-id: r35520
2008-12-24 05:41:27 +00:00
Matthew Hoops
a159fc8937 Update detection of the 11th hour demo. The disk.1 wasn't with the other files.
svn-id: r35509
2008-12-23 21:17:39 +00:00
Filippos Karapetis
672b82324a Silenced MSVC warnings
svn-id: r35507
2008-12-23 20:41:25 +00:00
Jordi Vilalta Prat
71d879296b Fix a valgrind error by using the appropiate delete operator
svn-id: r35498
2008-12-23 17:20:01 +00:00
Jordi Vilalta Prat
e04b49df62 T7G: Fix the stuck mouse cursor
svn-id: r35494
2008-12-23 09:55:07 +00:00
Jordi Vilalta Prat
1162e9a035 T7G: Don't wait for the CD track to end
svn-id: r35493
2008-12-23 08:24:06 +00:00
Jordi Vilalta Prat
95833732b3 Improve the palette fading (timing and factor calculation), which fixes the introduction synchronization as a result
svn-id: r35492
2008-12-23 08:15:10 +00:00
Matthew Hoops
be66a538b4 add detection for The 11th Hour demo
svn-id: r35469
2008-12-21 17:53:38 +00:00
Jordi Vilalta Prat
3f3b742cd6 T7G: Add support for custom AdLib instruments
svn-id: r35440
2008-12-19 16:55:54 +00:00
Johannes Schickel
28d33e01e9 Fixed cursor palette when returning from GMM/Debugger. (Thanks to jvprat for testing)
svn-id: r35428
2008-12-18 20:36:16 +00:00
Scott Thomas
f2497e5ef7 T7G: Fix for performance issue in save/load screen when hovering savegames
svn-id: r35256
2008-12-06 11:01:44 +00:00
Henry Bush
f10f151ff7 T7G: Reset origin at end of video: should fix seg fault after losing the microscope puzzle. Plus cleanup bitflag debugging.
svn-id: r35195
2008-11-30 21:17:58 +00:00
Henry Bush
ffaa47fb44 T7G: Stop errorString from printing script position
svn-id: r35194
2008-11-30 21:16:04 +00:00
Jordi Vilalta Prat
834d2c5f27 T7G: Enhanced the Audio CD playback. Now the credits music on CD2 should play by ripping it as track 2 (not tested).
svn-id: r35167
2008-11-25 00:41:51 +00:00
Jordi Vilalta Prat
4360757236 T7G: Implemented volume fading
svn-id: r35166
2008-11-24 21:53:23 +00:00
Henry Bush
184c15905d T7G: Add a debug level to play movies fast with no pcm sound (unstable)
svn-id: r35165
2008-11-24 21:48:40 +00:00
Henry Bush
ba3edfbd51 T7G: AI in microscope puzzle is "complete" (ie good enough for now)
svn-id: r35164
2008-11-24 21:22:24 +00:00
Henry Bush
d41ebfae81 T7G Microscope: Stauf now makes legal moves (though not good ones)
svn-id: r35154
2008-11-22 23:07:05 +00:00
Henry Bush
04b048a9c3 T7G: Add framework for microscope puzzle AI
svn-id: r35122
2008-11-19 00:37:20 +00:00
Torbjörn Andersson
48e1316da9 Added a mutex to the Groovie MIDI player. Maybe that will fix the rare and
unpredictable crashes I've been seeing.

svn-id: r35116
2008-11-18 19:29:51 +00:00
Johannes Schickel
2ef8a32a01 Fixed various g++ warnings ("format not a string literal and no format arguments").
svn-id: r35096
2008-11-16 20:20:31 +00:00
Henry Bush
e1fdb1f882 T7G: Two leftover commits from t7gre: fix broken palette on intro video, and add scriptvar debug flag
svn-id: r35095
2008-11-16 19:20:30 +00:00
Jordi Vilalta Prat
9671b3a514 Simplify error debugging by implementing GroovieEngine::errorString()
svn-id: r35087
2008-11-15 18:56:39 +00:00
Jordi Vilalta Prat
cd32c4d6bc Fix for bug "Save game's names don't show up" (issue 31 on google code)
svn-id: r35078
2008-11-15 11:23:02 +00:00
Jordi Vilalta Prat
402f8c388f Added GroovieMetaEngine::getMaximumSaveSlot()
svn-id: r35077
2008-11-15 10:50:57 +00:00
Eugene Sandulenko
194a10c77c Turn on single gameid in order to avoid polluting gameid namespace.
svn-id: r35076
2008-11-15 09:08:15 +00:00
Torbjörn Andersson
e5d0462af6 Initialise _current. Fixes a Valgrind warning.
svn-id: r35067
2008-11-14 23:37:30 +00:00
Johannes Schickel
5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +00:00
Max Horn
bb87d39424 Patch #2271425: Groovie engine
svn-id: r35060
2008-11-14 21:32:20 +00:00