Johannes Schickel
727f66de39
Commits Chriliths patch for fixing Kyra on PalmOS.
...
svn-id: r22708
2006-05-28 11:43:04 +00:00
Torbjörn Andersson
b17f0e8b6d
The Kyra settings are now stored in the config file instead of the savegames.
...
The settings in older savegames are ignored.
svn-id: r22705
2006-05-28 09:21:32 +00:00
Johannes Schickel
f548f97666
Fixes input handling while moving.
...
svn-id: r22661
2006-05-26 14:21:53 +00:00
Johannes Schickel
259e06a69b
- Adds some _quitFlag checks
...
- deletes Screen::drawPixel
svn-id: r22622
2006-05-25 08:02:17 +00:00
Johannes Schickel
ef6645c5ba
- reworks quit handling (no _system->quit() anymore)
...
- fixes some deinitalization problems
svn-id: r22558
2006-05-21 15:41:32 +00:00
Torbjörn Andersson
3a028875a1
Using assert(_something->init()) is a bad idea. Assertions can be disabled.
...
svn-id: r22533
2006-05-19 07:34:24 +00:00
Max Horn
909cd8c93a
Added some FIXMEs to the kyra engine
...
svn-id: r22531
2006-05-19 07:20:27 +00:00
Johannes Schickel
c8aa32d095
- implements kyrandia 3 wsa loader
...
- fixes initalisation problems
- adds setX, setY, setDrawPage to Kyra::Movie instead of directly accessing _x, _y and _drawPage
svn-id: r22490
2006-05-16 16:04:24 +00:00
Torbjörn Andersson
816fd39d58
Added delay() to delayWithTicks() as well. This function is quite similar to
...
some of the custom delay loops in script_v1.cpp. Could it be used there?
svn-id: r22394
2006-05-08 16:04:08 +00:00
Torbjörn Andersson
575eb8b775
Replaced a bunch of delay loops with a new delayUntil() function. Now all of
...
them will at least sleep if the remaining delay is at least 10 ms. (Personally,
I don't like the idea of busy-waiting even 9 ms, but now that it's in its own
function, it becomes much easier if we want to change that behaviour. There are
still plenty of custom delay loops left, though.)
svn-id: r22393
2006-05-08 15:40:30 +00:00
Torbjörn Andersson
cf42a24833
Cleanup: Use ScummVM indentation style for switch() cases. In some cases, I
...
have added or removed "break"s, but not in any way which should change the
program's behaviour. I.e. I've added "break" to the final case, and after
calling quitGame(), and I've removed "break" after "return".
svn-id: r22383
2006-05-08 10:16:19 +00:00
Johannes Schickel
6776fb3296
- moves detection code to plugin.cpp.
...
- splits game table for kyra1 and kyra2.
svn-id: r22309
2006-05-03 14:24:48 +00:00
Johannes Schickel
96fd5e1fbc
- modifies loadBitmap not to crash if a image isn't found
...
- starts to clean up the engine initalisation code
svn-id: r22308
2006-05-03 13:40:21 +00:00
Johannes Schickel
73dbd28873
Just add kyra2 to kyra_list if ENABLE_KYRA2 is defined.
...
svn-id: r22256
2006-05-01 13:05:18 +00:00
Oystein Eftevaag
ff7955f4d3
Adds archive file list, MD5 for my CD version, and a few function stubs for Hand of Fate, to use as a basis for further work
...
svn-id: r22252
2006-05-01 00:25:41 +00:00
Max Horn
bf73598811
* Changed the createEngine() factory function of our plugins to return an error code (the engine is now passed indirectly via a double pointer)
...
* Removed Engine_Empty (obsolete now that engines can return actual error codes)
svn-id: r22199
2006-04-29 00:27:20 +00:00
Oystein Eftevaag
47068bde51
Typo
...
svn-id: r22190
2006-04-27 00:42:12 +00:00
Oystein Eftevaag
9ec94f6fcb
Move the detector code out of the constructor and into init() to do error handling (specifically the GUI error message if no game is found in the specified directory), and cleans up the constructor/destructor a bit to allow a clean exit.
...
svn-id: r22189
2006-04-27 00:39:10 +00:00
Eugene Sandulenko
bf53520130
- Check if path specified for a game in scummvm.ini really exists and complain
...
if it does not
- Give more understandable feedback to user when SCUMM module can't find
a game
- Put TODO to kyra engine as their current detection scheme does not let
easily tell if game data really present in specified directory
svn-id: r22163
2006-04-25 23:07:59 +00:00
Oystein Eftevaag
d5c8a791a6
Fixes some coordinate initialization in the menus, and makes sure the initial savegame is created when kyrandia is started for the first time
...
svn-id: r22153
2006-04-25 15:42:37 +00:00
Oystein Eftevaag
bdd5a25c16
Implements the end credits, and disables fast forwarding in the intro.
...
svn-id: r21980
2006-04-17 17:39:08 +00:00
Max Horn
ba1b25305e
Removed the directory parameter from md5_file
...
svn-id: r21937
2006-04-16 12:50:39 +00:00
Max Horn
68cb7f52c8
- Renamed ConfigManager::getActiveDomain to getActiveDomainName, and added a new getActiveDomain method that returns a pointer to the actual active *domain*
...
- Added Engine::_targetName whose value is computed from the name of the active domain
- Removed GameDetector::_targetName, instead code now uses either Engine::_targetName or the name of the active domain
- This in turn allowed for removing usage of GameDetector in many places
svn-id: r21916
2006-04-15 20:36:41 +00:00
Eugene Sandulenko
5a2ad04a9e
Introduced language EN_ANY used for general English game entries. EN_USA and
...
EN_GRB should be used for games which have both variants. Currently it is
MM NES and BASS. All other are switched to EN_ANY.
svn-id: r21702
2006-04-08 23:12:56 +00:00
Max Horn
e7a8bb6abf
Modified the REGISTER_PLUGIN macro so that it allows (and requires) a trailing semicolon (this helps certain tools to parse our code better)
...
svn-id: r21689
2006-04-08 12:06:07 +00:00
Max Horn
8cf8acfd63
Renamed various *GameSettings to GameSettings (our namespaces are enough to distinguish them)
...
svn-id: r21686
2006-04-08 11:21:04 +00:00
Johannes Schickel
c09d1ea520
- Commits heaviliy modifed patch #1459951 ("KYRA: Combining MIDI music with Adlib sfx") (created a wrapper class for two different sound drivers instead of adding a new variable to the KyraEngine class and chaning stuff there)
...
- Prevents to play track 0 for non mt-32 midi devices (got ugly sound output with windows midi)
svn-id: r21479
2006-03-28 15:15:36 +00:00
Max Horn
9f93e5bb81
Renamed various container isEmpty() methods to empty() to match STL conventions
...
svn-id: r21472
2006-03-28 09:42:54 +00:00
Eugene Sandulenko
22042bc637
- Implemented case insensitive file reading. Left old system as a fallback
...
in case some engine writer decide to do something unwise
- Removed used of ConfMan.getKey("path") in file-related cases, because
now File class handles that
- Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters
weren't translated
svn-id: r21443
2006-03-25 04:17:17 +00:00
Torbjörn Andersson
0c0c41d495
Implemented "sound triggers" so that the music does not stop shortly after
...
entering the castle. I hope this is a fair approximation of how the original
worked. Of course, this led to a couple of more renamings:
_unk5 -> _soundTrigger
updateCallback54() -> update_setSoundTrigger()
snd_setUnk5() -> snd_getSoundTrigger() (yes, "get")
At the moment, the only known sound triggers are the ones in the castle. If an
unknown trigger is set, the debugging messages will be really, really noisy. I
don't know if I should consider this a bug or an extremely annoying feature.
svn-id: r21396
2006-03-21 17:17:24 +00:00
Oystein Eftevaag
3e9246331e
Makes sure Brandon actually dies when he turns to stone in the kyragem room
...
svn-id: r21379
2006-03-19 08:35:43 +00:00
Oystein Eftevaag
e636a25a33
Adds button press animations to the menu, and resets the cursor when the Dialog of Death pops up. Also, mouse clicks are now registered on button up instead of button down, as in the original
...
svn-id: r21377
2006-03-19 05:55:26 +00:00
Johannes Schickel
f9f2cd2dbe
- started to rework static resource loading
...
- made some function parameters const (to work with new static res code)
svn-id: r21365
2006-03-18 14:43:18 +00:00
Torbjörn Andersson
5d0ac7d57c
On second thought, that comment is probably not necessary.
...
svn-id: r21315
2006-03-15 15:35:52 +00:00
Torbjörn Andersson
c473ded022
Revert previous change. I'm told some backends don't draw the mouse cursor
...
automatically, for some reason.
svn-id: r21312
2006-03-15 12:44:41 +00:00
Torbjörn Andersson
52b3c957fe
The backend handled cursor drawing -- no need to update the screen manually.
...
svn-id: r21311
2006-03-15 12:32:07 +00:00
Johannes Schickel
c12a5a35be
- Deletes wrong spaces in debugC calls in resource.cpp
...
- Adds support for amiga .pak files (and a filelist)
svn-id: r21299
2006-03-14 19:48:08 +00:00
Johannes Schickel
a68e8c2db9
Fixes wrong sound then showing the death screen.
...
svn-id: r21290
2006-03-14 14:25:13 +00:00
Johannes Schickel
ccd0a09f7a
- Fixed regression when moving waitTicks to delay (removes wrongly drawn shapes and wrongly call of the kyragame fading in the outro)
...
- Removes a new line from a warning in seqplayer.cpp
svn-id: r21263
2006-03-13 17:19:19 +00:00
Johannes Schickel
9d3136fb71
Corrects former commit which deleted sound file loading after the scene with malcolm and kallak.
...
Also corrects callback50() which seem to improve the sound a bit in the kallak writing scene.
svn-id: r21238
2006-03-12 17:08:46 +00:00
Johannes Schickel
cd28f28d32
Music in the last two intro scenes plays now again with adlib.
...
Cleaned up the sound code a bit (removed some unneeded functions).
svn-id: r21234
2006-03-12 14:22:27 +00:00
Max Horn
6b19677e1d
Make use of DetectedGame::updateDesc in the kyra & lure engines
...
svn-id: r21167
2006-03-09 12:52:54 +00:00
Max Horn
86565fcca5
- Renamed GameSettings to PlainGameDescriptor
...
- Added new GameDescriptor struct (similar to PlainGameDescriptor but with
Common::String members instead of const char * ones)
- Changed DetectedGame to subclass GameDescriptor
- Removed toGameSettings() in favor of new (template) constructors in
DetectedGame and GameDescriptor
- Fixed a bug in the obsolete gameid handling in the SCUMM & SIMON engines
svn-id: r21150
2006-03-09 02:52:51 +00:00
Max Horn
d2f78184af
- added new toDetectedGame() template function (analog to toGameSettings)
...
- made use of the new DetectedGame constructor from my last commit
- some related cleanup
svn-id: r21149
2006-03-09 01:42:56 +00:00
Oystein Eftevaag
39c9af43ae
Implemented the last menu (the settings screen). Walking speed, text speed,
...
and speech modes (text only, speech only, speech & text) can now be
configured. Toggling music and sound in general is not enabled yet.
Also formatted the static menu resources a bit differently, made
sure some vars in the menu code always got initalized, and
fixed a slight formatting error :).
svn-id: r21145
2006-03-08 13:15:13 +00:00
Max Horn
d9a9fac937
Fixed tons of format string warnings for debug/error calls (including several errors where the format string didn't match the number of arguments to the call)
...
svn-id: r21141
2006-03-08 11:37:25 +00:00
Oystein Eftevaag
3f31e1b27d
Added the proper death dialog, changed the sequence skipping code a bit to avoid
...
possible frame losses, and removed a (now) redundant call to showOverlay() in the
debugger.
svn-id: r21125
2006-03-07 14:16:52 +00:00
Max Horn
907bd7128d
Fix for bug #1438822 (Targets are case sensitive)
...
svn-id: r21017
2006-03-02 22:29:01 +00:00
Johannes Schickel
f3106feaf5
Added WIP Adlib sound playing code to kyra.
...
It needs some checks since it doesn't work correctly in every case at the moment.
svn-id: r20960
2006-02-27 22:39:55 +00:00
Max Horn
8ac17430ac
- renamed PLUGIN_getSupportedGames to PLUGIN_gameIDList for consistency
...
- renamed Engine_XXX_gameList to Engine_XXX_gameList for consistency
- added new Engine_XXX_findGameID / PLUGIN_findGameID function
- updated plugins code to take advantage of the new plugin API, to support
obsolete gameids w/o showing them to the user
svn-id: r20752
2006-02-18 11:15:37 +00:00