Commit Graph

487 Commits

Author SHA1 Message Date
Max Horn
1986fff67c Merged setupGameFlags into Engine_KYRA_create (removing some obsolete code in the process)
svn-id: r25169
2007-01-25 00:07:48 +00:00
Eugene Sandulenko
318210ad96 Add optional size parameter to ADGameFileDescription. Not used now.
svn-id: r25164
2007-01-24 22:42:44 +00:00
Eugene Sandulenko
edd2422a55 Hide all AdvacedDetector parameters into a structure for easier maintenance
and extensibility

svn-id: r25163
2007-01-24 22:24:52 +00:00
Johannes Schickel
e0aa34bc51 Fixes implementation of o1_updateSceneAnimations.
svn-id: r25149
2007-01-21 14:23:32 +00:00
Eugene Sandulenko
cd8a5f3a98 First phase of detection-related plugins interface improvements. Now plugins
return StringMap instead of fixed list of parameters. This adds great
flexibility.

Current patch should not alter any functionality, i.e. if there are regressions,
submit a report. Phase 2 will benefit from these changes and will come later.

svn-id: r25134
2007-01-20 21:27:57 +00:00
Johannes Schickel
b6b75af524 Completed implementation of o1_restoreAllObjectBackgrounds.
svn-id: r25127
2007-01-20 15:28:03 +00:00
Johannes Schickel
3efe809e83 Fix for language selection.
svn-id: r25071
2007-01-13 10:24:26 +00:00
Johannes Schickel
d61a84e0ab Fix for bug #1631352 ("KYRA1: Graphics heavily broken and ScummVM crash"), I tried memmove here, but it also crashed on Win32 with memmove, so I reverted it back to how it was.
svn-id: r25059
2007-01-09 11:50:22 +00:00
Johannes Schickel
49f773d2f8 Little fix.
svn-id: r25058
2007-01-09 00:33:23 +00:00
Johannes Schickel
965d82ea46 Fix for bug #1586735 ("KYRA1: Sprite not redrawn")
svn-id: r25057
2007-01-08 23:55:14 +00:00
Oystein Eftevaag
ee221cc5df Merging decodeFrameDeltaPage() again and using Fingolfin's template trickery instead
svn-id: r25039
2007-01-06 18:52:30 +00:00
Johannes Schickel
46271f2145 formatting
svn-id: r25038
2007-01-06 18:45:43 +00:00
Oystein Eftevaag
8fbf9a1e23 A few minor fixes and optimizations (biggest one is splitting decodeFrameDeltaPage() into two functions to avoid a high amount of conditional jumps per decided animation frame
svn-id: r25034
2007-01-06 17:11:08 +00:00
Eugene Sandulenko
c01839bbe9 Make ADGameFileDescription is built in directly into ADGameDescription.
svn-id: r24947
2006-12-29 00:03:03 +00:00
Max Horn
6eef02245c Stripped some more real_ prefixes from function names; also added a new FIXME comment to Kyra's setupGameFlags, and did some more cleanup
svn-id: r24899
2006-12-20 00:08:51 +00:00
Max Horn
dc30c2304c Changed Engine_KYRA_detectGames to use ADVANCED_DETECTOR_DETECT_GAMES_FUNCTION, and removed the ADGameDescription::gameid abuse
svn-id: r24898
2006-12-19 23:59:26 +00:00
Max Horn
07c6fa980f Further AdvancedDetector cleanup (in particular, renamed ADGameDescription::name to the more suitable ADGameDescription::gameid)
svn-id: r24895
2006-12-19 23:37:03 +00:00
Max Horn
2969144120 * Simplified code in AdvancedDetector::detectGame
* Removed AdvancedDetector::setFileMD5Bytes, now AdvancedDetector::detectGame
  simply takes the MD5 byte limit as an extra parameter

svn-id: r24894
2006-12-19 23:14:15 +00:00
Max Horn
865d8717a3 * Change the GameList typedef to a proper class with an additional
constructor which takes a PlainGameDescriptor 'list'
* Replaced real_ADVANCED_DETECTOR_GAMEID_LIST by this new constructor
* Removed ADVANCED_DETECTOR_GAMEID_LIST and ADVANCED_DETECTOR_FIND_GAMEID
* Some minor cleanup

svn-id: r24893
2006-12-19 22:43:15 +00:00
Eugene Sandulenko
457ebfea3c Get rif od ARRAYSIZE in ADGameDescription
svn-id: r24882
2006-12-19 04:35:08 +00:00
Eugene Sandulenko
18ce381060 Got rid of ARRAYSIZE in advanceDetector calls
svn-id: r24881
2006-12-19 03:52:04 +00:00
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
Torbjörn Andersson
e0cd675a47 Since the XMIDI music no longer automatically loops, there's no need to fade it
out just as it's reaching its most dramatic point.

svn-id: r23657
2006-08-03 11:13:06 +00:00
Torbjörn Andersson
6a40e7f789 This is a grossly over-simplified, yet hopefully sufficient for Kyrandia, way
of handling XMIDI loops. If anyone feels like doing it properly in
midiparser_xmidi.cpp, the Exult project probably has one of the better
reference implementations. For now, though, I don't see any real need to, and
this change is clearly flagged as a hack.

svn-id: r23656
2006-08-03 11:12:05 +00:00
Torbjörn Andersson
7d53480025 Kyra 2 has two types of XMIDI files: XMI and C55. It seems C55 are for the
General MIDI instrument set, so use them unless we're in MT-32 mode. This makes
the music sound a bit closer (at least to me) to what DOSbox plays.

svn-id: r23653
2006-08-01 13:42:33 +00:00
Torbjörn Andersson
56c59d1da6 Don't start the Kyra 2 menu music until the first frame has faded up, to better
match the original behaviour.

svn-id: r23652
2006-08-01 10:25:10 +00:00
Torbjörn Andersson
afe26b5ea5 Until the native Kyra 2 Adlib music is supported, enable the automagic MIDI-to-
Adlib converter.

svn-id: r23651
2006-08-01 07:44:38 +00:00
Torbjörn Andersson
c32c7e00c4 Don't set the MIDI volume to 255 at the end of a fade-out. At least on my
hardware, that causes an annoying spike in the volume. We already reset the
volume to 255 at the beginning of a new track anyway, as far as I can tell.

svn-id: r23650
2006-08-01 03:29:32 +00:00
Oystein Eftevaag
ec8f1b092d Committing patch '[ 1531177 ] Kyra2 mock-up' by eriktorbjorn, with the addition of playing the music tracks as well (Only MIDI works for now though)
svn-id: r23649
2006-07-31 23:05:01 +00:00
Johannes Schickel
01b3a0b568 Yet more kyra3 init code.
svn-id: r23648
2006-07-31 16:37:34 +00:00
Max Horn
4a80db4c7b * Added copyright string to all engine plugins
* Modified about dialog to list all available plugins with their resp. copyright
* Modified about dialog credits to show the GPL last (like movie end credits do with their legal text, too)

svn-id: r23645
2006-07-31 13:41:21 +00:00
Max Horn
a1bb64e24b Const correctness
svn-id: r23644
2006-07-31 13:37:47 +00:00
Johannes Schickel
64c6399bd7 removing never used buffer.
svn-id: r23638
2006-07-30 15:05:36 +00:00
Johannes Schickel
3846565058 Implements item shape loading for kyra3.
svn-id: r23637
2006-07-30 14:53:28 +00:00
Torbjörn Andersson
066aa14f97 It's play(), not open(), that encounters the CMDS tag. At least in the intro
movie, which is the only one we currently play.

svn-id: r23626
2006-07-30 09:10:54 +00:00
Johannes Schickel
6cc1a57d3b - fixes bug in fileData (introduced with last commit)
- show mouse cursor in Screen::setMouseCursor if it's allready shown
- a little bit more kyra3 init stuff

svn-id: r23623
2006-07-30 08:22:39 +00:00
Johannes Schickel
92649de672 - fixes copyright of kyra3.h
- implements a bit more init functions for kyra3
- removes hacked mouse cursor
- changes Resource::fileData to accept a null pointer for size

svn-id: r23622
2006-07-30 07:51:11 +00:00
Torbjörn Andersson
f51fc44e66 Added _quitFlag test to Kyra 2 animation and to waitForEvent().
svn-id: r23617
2006-07-29 05:59:44 +00:00
Johannes Schickel
f8d4994dc2 Little cleanup.
svn-id: r23616
2006-07-28 17:42:33 +00:00
Oystein Eftevaag
3c4b13ed33 Moves the kyra2 code to kyra2.cpp and kyra2.h, renames WSAMovieV3 to WSAMovie2 (kyra2 uses the same format), renames a define in kyra3.h for consistency, and adds a case for CMDS in the VQA player to avoid the constant warning (the tag is always present and empty). Credit/blame for the last one goes to Clemmy :). Starting kyra2 will now show the title animation.
svn-id: r23614
2006-07-28 11:42:53 +00:00
Johannes Schickel
a69ac7717d Oops it should never be renamed to c1_* but to o1_* changing this now.
svn-id: r23613
2006-07-27 20:39:52 +00:00
Johannes Schickel
ee5621137f - renaming all opcodes from cmd_* to c1_*
- changing ScriptHelper functions so it will be useable for kyra2 and kyra3 too
- unbreaking savegames (increasing the VERSION number since the game flags table got resized to be useable for kyra3)

svn-id: r23612
2006-07-27 20:30:51 +00:00
Johannes Schickel
8a0ec2a3e5 - moving KyraEngine_v3 declaration to newly added kyra3.h
- implements a little bit init stuff
- implements some music handling

svn-id: r23610
2006-07-27 18:29:14 +00:00
Johannes Schickel
d9e5134919 Workaround for bug #1498221 ("KYRA1: Glitches when meeting Zanthia").
svn-id: r23608
2006-07-27 00:09:13 +00:00
Johannes Schickel
bcc892ec81 Make the midi player threadsafe (this should fix bug #1506583 "KYRA1: Crash on exceeded polyphony").
svn-id: r23605
2006-07-26 22:24:33 +00:00
Torbjörn Andersson
eb7cda50aa Fade out the music when using the Kyra 3 menu to exit. (The original does, and
it might make a useful test case for the fade-out code.)

svn-id: r23604
2006-07-26 20:39:27 +00:00
Torbjörn Andersson
e9f1323221 End the Kyra 3 menu screen if _quitFlag is set.
svn-id: r23603
2006-07-26 20:30:57 +00:00
Torbjörn Andersson
ec6a9b0071 Removed unnecessary #include
svn-id: r23598
2006-07-26 06:36:58 +00:00
Johannes Schickel
d2befe0c6f Skips scroll down sequence then the user wishes to skip the intro.
svn-id: r23596
2006-07-26 05:33:48 +00:00
Johannes Schickel
5ccb436cad Nicer quit handling in the intro sequences.
svn-id: r23594
2006-07-26 05:27:34 +00:00
Johannes Schickel
37d050e9da Add support for looping the kyra3 main menu.
svn-id: r23593
2006-07-25 15:11:42 +00:00
Max Horn
4fcdbb9349 String class usage cleanup
svn-id: r23582
2006-07-23 15:08:48 +00:00
Torbjörn Andersson
b845eb9b99 Initialise the screen before creating the music driver. The MT-32 driver wants
to draw to the screen.

svn-id: r23574
2006-07-23 07:06:26 +00:00
Johannes Schickel
4ae5cef491 - let md5_file accept a FilesystemNode too
- changes some engine detectors to use it

svn-id: r23559
2006-07-22 14:59:44 +00:00
Johannes Schickel
7caf96af6f Changes usage of FilesystemNode::name to FilesystemNode::displayName in the detector code.
svn-id: r23554
2006-07-22 14:28:39 +00:00
Johannes Schickel
eb23d7b9a0 Changing usage of FSNode::displayName to FSNode::path
svn-id: r23549
2006-07-22 00:44:56 +00:00
Johannes Schickel
29f99a029e Using path instead of displayName.
svn-id: r23541
2006-07-20 21:41:59 +00:00
Johannes Schickel
73869dca9f - don't error on CHAPTER1.VRM miss anymore
- nicer error messages when no font files are found
- implements nicer way to load fonts

svn-id: r23531
2006-07-16 19:44:39 +00:00
Johannes Schickel
1a31d7da7e Should fix loading of pakfiles.
svn-id: r23516
2006-07-15 21:22:07 +00:00
Johannes Schickel
1ad8d3ee6e Adds filesize check for kyra.dat, this forces to upgrade always to the newest version though.
svn-id: r23514
2006-07-15 20:46:27 +00:00
Johannes Schickel
ea0e3a806c Get rid of some asserts and adds error messages instead.
svn-id: r23513
2006-07-15 20:37:32 +00:00
Johannes Schickel
d630b3e722 Little cleanup.
svn-id: r23512
2006-07-15 20:32:54 +00:00
Johannes Schickel
04503d462d Use the FS Api to load all .PAK and .APK files. (I just made a few quick tests, but before this should be integrated to branch-0-9-0 there should be a test for it on *every* platform, since I'm not quite sure if FilesystemNode::displayName is useable for this...)
svn-id: r23511
2006-07-15 20:30:36 +00:00
Johannes Schickel
a8e3e929e8 A little cleanup (merges kyra1_games, kyra2_games, kyra3_games into kyra_games)
svn-id: r23510
2006-07-15 20:09:45 +00:00
Johannes Schickel
f5d8055777 Changes names of Kyra2 and Kyra3 detected games.
svn-id: r23509
2006-07-15 20:00:08 +00:00
Torbjörn Andersson
6358547a43 More whitespace changes.
svn-id: r23496
2006-07-14 13:33:58 +00:00
Johannes Schickel
db2ffa4285 Changes init error handling of kyra engine (engine fails at Engine_KYRA_create now instead of KyraEngine::init, also adds check for invalid game path like the scumm
engine does).

svn-id: r23426
2006-07-08 14:51:26 +00:00
Johannes Schickel
abdebd3bfd - fixes some c/p errors from my last commit
- fixes embedded pak loading

svn-id: r23425
2006-07-08 14:25:23 +00:00
Johannes Schickel
57621c9245 Implements loading of 'westwood.001' for kyra3 (no need to run the installer anymore).
(thanks to eriktorbjorn for his code to extract files from westwood.001)

svn-id: r23423
2006-07-08 13:56:56 +00:00
Johannes Schickel
93e9dee0d1 Adds a message dialog if kyra.dat is missing which tells the user to download the kyra.dat file.
svn-id: r23421
2006-07-08 12:23:44 +00:00
Johannes Schickel
ac8607f433 Fixes save/load of kyra engine.
svn-id: r23287
2006-06-24 12:03:30 +00:00
Max Horn
ff15667544 These FIXME comments can go, I think :)
svn-id: r23277
2006-06-24 09:34:24 +00:00
Max Horn
ca2a6d7cd1 Fixing a leak in the Kyra engine (the savefile manager allocated by class Engine was never freed)
svn-id: r23276
2006-06-24 09:29:57 +00:00
Max Horn
9a955180a4 * Renamed config.mak to config.mk
* Renamed common.rules to rules.mk
* Removed explicit declaration of MODULE_DIRS in various spots (instead we let rules.mk compute it)

svn-id: r23275
2006-06-24 08:48:11 +00:00
Max Horn
d210b19aec Move backends/fs/fs.h and .cpp to common/fs/fs.h and .cpp
Rationale: backend implementations belong to backends/, but portable APIs meant to be used by high level code is for common / sound / graphics / ... (compare also with backends/midi vs. sound/mididrv.h)

svn-id: r23274
2006-06-24 08:07:48 +00:00
Oystein Eftevaag
499b5491eb Makes sure updateScreen() is called once in a while in the menu polling loop, to give backends some drawing time for virtual keyboards etc
svn-id: r23169
2006-06-18 10:39:57 +00:00
Johannes Schickel
9dd02260a6 removes _selectedMenuItem again.
svn-id: r22944
2006-06-05 19:43:44 +00:00
Chris Apers
81e0a00966 Fixed PalmOS ARM crashes
svn-id: r22942
2006-06-05 19:33:10 +00:00
Johannes Schickel
8b24dc9bdf wrong palettes should be really fixed now.
svn-id: r22912
2006-06-04 12:30:29 +00:00
Johannes Schickel
c590229796 Should fix strange palettes in some rooms.
svn-id: r22910
2006-06-04 12:16:12 +00:00
Torbjörn Andersson
7b2362702f This hack is no longer needed to make the mouse cursor visible on the Kyra 3
main menu.

svn-id: r22905
2006-06-03 19:43:57 +00:00
Johannes Schickel
392fe0cad1 Don't allow creation of save file when the user quits the game while the intro.
svn-id: r22904
2006-06-03 18:38:36 +00:00
Johannes Schickel
4a6b2a3276 Fixes visible mouse cursor in the intro with classic theme.
svn-id: r22903
2006-06-03 18:34:57 +00:00
Johannes Schickel
35e7eacc3f Changes some char* usage to Common::String.
svn-id: r22902
2006-06-03 18:30:07 +00:00
Johannes Schickel
6cfb416d44 - Replaces usage of PAKChunk* with PAKChunk for Common::List, should solve some strange MSVC6 warnings/(errors).
svn-id: r22900
2006-06-03 17:58:13 +00:00
Johannes Schickel
369e79bfba Implements cmd_fadeEntirePalette, should fix some missing palette fades.
svn-id: r22888
2006-06-03 15:13:18 +00:00
Johannes Schickel
48af506189 Fix for bug # 1497965 ("KYRA1: Skipping dialogue requires two clicks").
svn-id: r22848
2006-06-03 00:30:28 +00:00
Johannes Schickel
97b3b74ea1 Oops. sfx should be on per default.
svn-id: r22845
2006-06-02 23:01:33 +00:00
Johannes Schickel
6ac60c9c7b Fix for bug # 1497961 ("KYRA1: in-game "Music" option not working").
svn-id: r22844
2006-06-02 22:57:02 +00:00
Torbjörn Andersson
4c9b3ce5e3 Call setWalkspeed() after reading config settings, and after loading savegames,
so that _timers[] is properly synced with _configWalkspeed. Should fix bug
#1498660.

svn-id: r22814
2006-06-01 09:49:56 +00:00
Lars Persson
44d48ed594 GCC 2.9x fix for Symbian OS, for accessing class within Common namespace
svn-id: r22807
2006-05-31 19:55:29 +00:00
Torbjörn Andersson
2ce9edd7f7 Fixed subtitles Y coordinate in characterSays(). I have no way of confirming
this, but it seems obvious to me that it's trying to subtract the character's
scaled height, and this is how that's calculated elsewhere as far as I can see.

svn-id: r22769
2006-05-30 12:13:34 +00:00
Oystein Eftevaag
5d562eb3c5 Committed patch [ 1496602 ] KYRA: typo on Kyra2 file list
, thanks to Bellut

svn-id: r22729
2006-05-29 01:55:42 +00:00
Torbjörn Andersson
bc5b877aa9 Got rid of _selectedMenuItem to make LordHoto happier.
svn-id: r22725
2006-05-28 16:29:31 +00:00
Torbjörn Andersson
e4989b37b7 Mock-up version of the Kyra 3 main menu. Just enough to be able to select the
intro cutscene.

svn-id: r22724
2006-05-28 16:22:12 +00:00
Johannes Schickel
28114e3007 Sets a blank palette at startup.
svn-id: r22719
2006-05-28 12:33:41 +00:00
Johannes Schickel
d28d6fe4fb cleanup
svn-id: r22717
2006-05-28 12:23:49 +00:00
Johannes Schickel
1750be5b5a - makes Screen::getPagePtr private
- introduces Screen::getCPagePtr and Screen::getPageRect (which should ease the introduction of dirty rect handling)
- moves KyraEngine::loadBitmap to Screen

svn-id: r22716
2006-05-28 12:19:45 +00:00
Oystein Eftevaag
a442af2703 Another couple of fixes for the spanish floppy version (menu strings specifically)
svn-id: r22714
2006-05-28 12:10:11 +00:00
Johannes Schickel
a822d8e6e0 adds GF_ITALIAN to the list of language flags.
svn-id: r22713
2006-05-28 11:55:42 +00:00
Johannes Schickel
a02f239659 cleanup
svn-id: r22712
2006-05-28 11:53:20 +00:00