Commit Graph

366 Commits

Author SHA1 Message Date
Eugene Sandulenko
88fabf4a53 Move addSpecialDebugLevel calls to engine constructor, as stated in our
HOWTO Engines.

svn-id: r24704
2006-11-13 12:00:36 +00:00
Max Horn
1f26cb8965 Reworked code in the advanced game detector (getting rid of much of the evil #define hell it consisted of previously)
svn-id: r24685
2006-11-12 03:23:29 +00:00
Eugene Sandulenko
a977988058 Next step in AdvancedDetector unification. Moved all common functions to
macroses. Now typical usage is just list of macros with parameters and 
array of game details.

svn-id: r24670
2006-11-10 22:43:10 +00:00
Johannes Schickel
53ba30a3d4 oops add comment about german floppy version details again
svn-id: r24666
2006-11-09 14:42:15 +00:00
Johannes Schickel
7b74adf98d - switches to Common::AdvancedDetector
- non md5 based detector removed (for now)

svn-id: r24665
2006-11-09 14:38:16 +00:00
Johannes Schickel
7ad775fe11 Always stop the audio handle in Sound::voicePlay.
svn-id: r24569
2006-10-29 15:27:03 +00:00
Johannes Schickel
3197cb6a23 Never unload files loat on startup like "CAVE.APK" and "LAGOON.APK".
svn-id: r24485
2006-10-24 00:56:10 +00:00
Johannes Schickel
0d357aab4d Fix for (reopened) bug #1582149 ("KYRA1: Crash when meeting Malcolm").
svn-id: r24480
2006-10-24 00:30:48 +00:00
Johannes Schickel
8fb07286cc Fix for bug #1582726 ("KYRA1: Crash when entering Castle screen").
svn-id: r24475
2006-10-23 23:12:12 +00:00
Johannes Schickel
f0a162e8bb Fix for bug #1582149 ("KYRA1: Crash when meeting Malcolm").
svn-id: r24462
2006-10-22 20:12:27 +00:00
Johannes Schickel
a853696a5e Some AMIGA resource loading code (of course it's still not supported).
svn-id: r24461
2006-10-22 20:08:23 +00:00
Johannes Schickel
e58da07488 Don't output warning about unsupported language more than one time.
svn-id: r24459
2006-10-22 20:04:45 +00:00
Max Horn
b5cbbd705a Added some more const keywords
svn-id: r24330
2006-10-15 02:15:38 +00:00
Johannes Schickel
06dde0650f Fixed msvc8 build.
svn-id: r24053
2006-10-01 10:54:57 +00:00
Max Horn
4c14cf6d1a Moved base/engine.cpp and .h to engines/ (main motivation: helps untangle the linker dependency graph). Porters will have to update project files
svn-id: r23974
2006-09-23 00:42:35 +00:00
Johannes Schickel
f9d1a82cc0 Fixes the Macintosh related problems Krest mentioned on the IRC channel.
(the user has to set the game platform to Macintosh though, since it's
atm detected as DOS version)

svn-id: r23929
2006-09-18 17:30:51 +00:00
Johannes Schickel
f4759feeab formatting
svn-id: r23923
2006-09-17 21:19:23 +00:00
Johannes Schickel
b6a8e38726 - removes the kyra specific language flag system, and uses the language enum defined in Common for that now
- also reworks the game flag system in general

svn-id: r23920
2006-09-17 20:21:40 +00:00
Max Horn
4503581340 Const correctness
svn-id: r23916
2006-09-17 13:06:40 +00:00
Johannes Schickel
a8bc979364 - enables pseudo unloading of loaded pak files (which reduces the loading of pak files on room changes)
- uses Common::hashit_lower instead of scumm_stricmp for filename checking

svn-id: r23896
2006-09-16 20:51:05 +00:00
Max Horn
919092e5fc Overhaul of the debugger code
* Moved Common::Debuggger to GUI::Debugger (mainly to satisfy linker
  restrictions)
* Change the base Debugger class to *not* be a template class anymore;
  instead, a thin (template based) wrapper class is used to hook up
  debugger commands
* Removed duplicate Cmd_Exit and Cmd_Help methods in favor of a single
  version of each in GUI::Debugger
* New Cmd_Help doesn't word wrap after 39/78 chars, but rather queries
  the console to determine when to wrap
* Debugger::preEnter and postEnter aren't pure virtual anymore

svn-id: r23890
2006-09-16 16:58:27 +00:00
Max Horn
a2dc897fe5 Reduce code duplication
svn-id: r23888
2006-09-16 15:01:14 +00:00
Johannes Schickel
250133baf0 Simplifies resource handling for the CD version of Kyrandia.
(also less file loading at startup, but more on room change)

svn-id: r23887
2006-09-16 14:36:53 +00:00
Johannes Schickel
84c2a93db5 Replaces all malloc/realloc usages with new.
svn-id: r23886
2006-09-16 13:40:28 +00:00
Johannes Schickel
e139d26be1 Replaces malloc with new in most cases.
svn-id: r23881
2006-09-16 12:12:02 +00:00
Johannes Schickel
75fd84e85a - adds dirty rect handling to the kyra engine (needs some more tests before I commit it to branch though)
- initializes an uninitiliazied variable which caused crashes from time to time

svn-id: r23878
2006-09-15 16:04:32 +00:00
Torbjörn Andersson
c66ec787d2 Test _skipFlag a bit more often.
svn-id: r23867
2006-09-10 18:44:53 +00:00
Torbjörn Andersson
632a1a3a22 Clear _skipFlag at beginning of Kyra 2 intro. Otherwise, skipping it once will
automatically skip it if you try to watch it a second time. (Are there any
other flags that need to be cleared as well?)

svn-id: r23866
2006-09-10 18:22:27 +00:00
Johannes Schickel
65c0bdcaa0 - Some little checks for shape usage.
- Less redrawing while loading a savegame.

svn-id: r23864
2006-09-10 13:52:17 +00:00
Johannes Schickel
09f7e35196 Little bit cleanup.
svn-id: r23863
2006-09-10 13:26:00 +00:00
Johannes Schickel
854eac7f9b Simplifies PAK file loading a bit.
svn-id: r23862
2006-09-10 13:16:34 +00:00
Max Horn
cfc52b5654 Renamed Resource::fileHandle() to Resource::getFileHandle()
svn-id: r23853
2006-09-09 17:14:47 +00:00
Max Horn
c7ab445755 Get rid of fsnode hack
svn-id: r23852
2006-09-09 17:10:09 +00:00
Oystein Eftevaag
2db1dc882b Ignore mouselock count when switching the cursor graphics, fixing a bug salty-horse reported on irc.
svn-id: r23849
2006-09-09 16:10:11 +00:00
Max Horn
ab82dc3f9c Fix memory leak
svn-id: r23848
2006-09-09 14:54:41 +00:00
Torbjörn Andersson
7bb8ca3ef6 Fixed warning.
svn-id: r23844
2006-09-09 13:07:15 +00:00
Neil Millstone
9f0149c553 Fixed a bug in loadPakFile(), and changed PAKFile constructor so that it doesn't load the entire file.
svn-id: r23843
2006-09-09 12:21:49 +00:00
Torbjörn Andersson
18325259b8 Fixed bug #1554904 ("KYRA1: No mouse cursor in latest SVN build"). GI_KYRA1 is
not a bit flag...

svn-id: r23834
2006-09-09 02:02:45 +00:00
Oystein Eftevaag
f3d284af2e More kyra2 intro WIP stuff (WSA playback control sequences implemented, used in the library part). One more sequence has also been implemented, but is off by default due to the WSA files being used apparently being decoded incorrectly.
svn-id: r23828
2006-09-04 21:50:17 +00:00
Torbjörn Andersson
64aa291a16 Applied my own patch #1549054, after discussing it with LordHoto. This makes
the intro scrolling use constant time, rather than assuming that the screen can
be rendered once every "tick". On my^H^Hslow computers, this makes it a bit
less smooth, but that should be ok.

It also fixes a tiny glitch right after the scrolling.

svn-id: r23811
2006-08-31 17:17:31 +00:00
Johannes Schickel
1ba14890c6 Init unitialised var.
svn-id: r23805
2006-08-29 15:58:57 +00:00
Oystein Eftevaag
610547acac Makes sure FilesystemNode::name isn't used to open a file, use a regular filehandle name instead.
svn-id: r23800
2006-08-28 18:43:35 +00:00
Johannes Schickel
7c99b54b4e Removing an extra '!' in a warning message.
svn-id: r23799
2006-08-28 14:21:23 +00:00
Oystein Eftevaag
d11e72a168 Adds voice/chats to the intro, and adds debug strings to the function calls.
svn-id: r23789
2006-08-27 12:30:38 +00:00
Oystein Eftevaag
c47a957fb3 Adds some framework for the Kyra2 intro, expands it a little bit and adds some static resources (strings, etc). Also
adding a modified version of eriktorbjorn's '[1531929] KYRA: Kyra 2 & 3 main menu unification', with added mouse pointer and sundry.

svn-id: r23766
2006-08-26 22:17:30 +00:00
Oystein Eftevaag
11b7cfca10 Stop doing a screen rewrite on each mouse movement event, just schedule a redraw for later instead
svn-id: r23764
2006-08-26 20:05:49 +00:00
Oystein Eftevaag
a698cdfcfc Catalog the PAK files by base name instead of full path name so we can properly unload them. The method may be slightly hackish, but I don't see how else to do it since we apparently support recursive PAK files so the File object can't be instantiated directly using the FilesystemNode. It's this, or add a function to File that gives us just the base name of the file.
svn-id: r23762
2006-08-26 18:37:49 +00:00
Johannes Schickel
7d0435f23c - adding LPGL headers to adlib sound specific files
- stating about dual license of adlib sound specific files

svn-id: r23708
2006-08-15 18:04:01 +00:00
Johannes Schickel
eee50637b8 Little Common::String usage 'fix'.
svn-id: r23698
2006-08-08 21:34:19 +00:00
Torbjörn Andersson
44dd6a386e Committed my own patch #1533833 (minus one line that was left over from an
earlier experimental version) after discussing it with LordHoto. This works
around a bug in the "Pool of Sorrow" Adlib data which caused the channels to
drift more and more out of sync for each time the music looped. The patch
forces the channels involved to jump in sync. As with all such workarounds, it
may cause regressions. But it shouldn't.

svn-id: r23659
2006-08-03 13:11:16 +00:00