Commit Graph

17543 Commits

Author SHA1 Message Date
Max Horn
c4df5037dc * Renamed several methods in favor of a somewhat more uniform naming scheme: setupFOO for stuff that inits static data (i.e. will be called only once, or after loading savegames), vs. resetFOO / updateFOO methods which are called frequently and (re)set dynamic data.
* Doing this, split scummInit into setupScumm and resetScumm methods
* Moved some init code to new methods (huuuuge init methods are hard to read, and hard to customize using subclassing)
* Renmaed various setup???Palette methods to set???Palette
* Some minor cleanup / tweaks

svn-id: r22227
2006-04-29 16:24:39 +00:00
Gregory Montoir
ad5a89a04b "qtable" is the tool we used to generate the "queen.tbl" file.
As the .tbl file is now the repository (in the engine-data module), I thought it would be nice to have the tool to (re)generate it.
It may also be useful to add support for any other versions.

There's no makefile ; to build the tool, just compile "qtable.c".
To generate the .tbl file, just execute the tool with the output filename as argument.

svn-id: r22226
2006-04-29 14:29:57 +00:00
Travis Howell
7c8457ca5d Cleanup includes
svn-id: r22225
2006-04-29 14:23:16 +00:00
Travis Howell
16e90765a9 Split more functions of simon.cpp into separate files
svn-id: r22224
2006-04-29 14:11:29 +00:00
Max Horn
39e9853d91 * Added ScummEngine_v8::initScummVars()
* Moved VAR_LANGUAGE to class ScummEngine_v8
* Minor cleanup

svn-id: r22223
2006-04-29 13:56:36 +00:00
Travis Howell
daed55b789 Split more functions of simon.cpp into separate files
svn-id: r22221
2006-04-29 13:38:07 +00:00
Willem Jan Palenstijn
af280f967b add small note about svnversion
svn-id: r22220
2006-04-29 13:17:22 +00:00
Max Horn
1735b0421b Make use of the new scummLoop_* functions to move some SCUMM version specific stuff around
svn-id: r22219
2006-04-29 13:01:35 +00:00
Max Horn
cc3fac2ead Split scummLoop into multiple functions, for easier maintanance & customizability
svn-id: r22218
2006-04-29 12:44:06 +00:00
Max Horn
a427a14ebe Updated the common on why we would like to display the SVN rev as part of the ScummVM version string, and why this is non-trivial
svn-id: r22217
2006-04-29 12:38:28 +00:00
Travis Howell
ffe434a949 Add FF difference in o_screenTextMsg()
svn-id: r22216
2006-04-29 12:35:46 +00:00
Travis Howell
80bc64b951 Minor cleanup
svn-id: r22215
2006-04-29 12:29:21 +00:00
Travis Howell
d9ed515f90 Merge fadeToBlack() into o1_specialFade() and cleanup
svn-id: r22214
2006-04-29 12:25:15 +00:00
Travis Howell
7e02709e7d Fix error in debug table
svn-id: r22213
2006-04-29 12:21:47 +00:00
Max Horn
0aabdf821c Fix warning
svn-id: r22210
2006-04-29 11:56:59 +00:00
Paul Gilbert
1192f0dfca Enhanced hotspot action so that the player will properly walk to a hotspot before performing an action
svn-id: r22209
2006-04-29 11:22:05 +00:00
Paul Gilbert
946d0582dc Added proper action display after selection along with showing the camera cursor
svn-id: r22208
2006-04-29 11:19:55 +00:00
Paul Gilbert
8b184ad5b0 Changed resource Id constants, added a few more general constants, and slightly increased game speed
svn-id: r22207
2006-04-29 11:18:08 +00:00
Paul Gilbert
302c825a17 Reworked resource loading to no longer load hotspot proximities separately, or provide access to the list
svn-id: r22206
2006-04-29 11:17:06 +00:00
Paul Gilbert
3e8763f454 Reworked resources to handle moved hotspot proximity (walk to) co-ordinates
svn-id: r22205
2006-04-29 11:15:03 +00:00
Paul Gilbert
d88ce16b12 Tweaked dialog display code to refresh the screen and warn about message Ids needing display styles that aren't yet implement
svn-id: r22204
2006-04-29 11:13:47 +00:00
Travis Howell
8e7895e7bc Add more timer code differences in FF
svn-id: r22201
2006-04-29 02:01:32 +00:00
Travis Howell
9774261e0f Fix mistakes in animateSpritesByY() for FF
svn-id: r22200
2006-04-29 00:32:38 +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
Max Horn
b00262a2fe Report unknown MD5s again
svn-id: r22198
2006-04-28 23:43:56 +00:00
Max Horn
36e3e5ee78 Memorize the directory that was last visited with the browser across ScummVM runs (see also FR #1460734)
svn-id: r22197
2006-04-28 23:15:43 +00:00
Travis Howell
c1572b2dbd _isPseudoRoot should be always false, in WindowsFilesystemNode(const String &path)
svn-id: r22195
2006-04-27 23:16:45 +00:00
Travis Howell
e163be131c Revert kListAllNoRoot addition to listdir(), the uninitialized _isPseudoRoot in windows filesys backend was real cause of problem.
svn-id: r22194
2006-04-27 23:14:54 +00:00
Willem Jan Palenstijn
6330e65852 return first sdl-config found in PATH
svn-id: r22193
2006-04-27 19:55:09 +00:00
Max Horn
cf13cf3a70 I still don't know whether this is the correct fix for WindowsFilesystemNode, but at least with it, one definite and serious bug in the code (using an uninitialised variable) has been fixed, the end result hardly will be worse
svn-id: r22192
2006-04-27 17:21:33 +00:00
Travis Howell
5c2dd8da24 Fix compile of SCUMM engine
svn-id: r22191
2006-04-27 04:59:13 +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
Max Horn
9d5098e0f8 Insane is part of SCUMM V7, not V6
svn-id: r22188
2006-04-27 00:02:06 +00:00
Joost Peters
ac1ce25512 add missing comma for portuguese quit text, remove stray comma after last string.
svn-id: r22187
2006-04-26 22:31:10 +00:00
Torbjörn Andersson
5dd3ef077f Add FF difference in isAdjNoun opcode. This makes it possible to get past the
SAM / PEG puzzle, but do not ask me what, exactly, was wrong. I haven't a clue.

svn-id: r22186
2006-04-26 19:49:13 +00:00
Max Horn
bdf790e294 cleanup
svn-id: r22185
2006-04-26 17:15:29 +00:00
Max Horn
a4338aeb19 Use File::size to determine the size of a file, instead of doing a seek(0, SEEK_END)
svn-id: r22184
2006-04-26 14:35:53 +00:00
Max Horn
cd528083f9 Removed 'directory' parameter of File::open
svn-id: r22183
2006-04-26 14:05:34 +00:00
Max Horn
092fd96145 Replaced _hFileTable by _hInFileTable/_hOutFileTable
svn-id: r22182
2006-04-26 14:05:09 +00:00
Torbjörn Andersson
c4c09fd8f1 Use the joined filename for savegames, otherwise saves will be stored in the
current working directory instead of the save directory.

svn-id: r22181
2006-04-26 13:12:33 +00:00
Max Horn
0aaa04899c Changed InSaveFile (part of the save file system) to inherit from SeekableReadStream, meaning that savegames opened for reading now are seekable (DC, PS2, Palm ports will have to be updated accordingly)
svn-id: r22180
2006-04-26 11:15:13 +00:00
Travis Howell
46058e8d17 Fix timer events time when saving game in FF
svn-id: r22179
2006-04-26 10:55:27 +00:00
Max Horn
7383f81d2f Added a 'skip' method to SeekableReadStream (just an alias for seek(X, SEEK_CUR))
svn-id: r22178
2006-04-26 10:54:32 +00:00
Travis Howell
e78185aeb8 Fix timer events time when saving game in FF
svn-id: r22177
2006-04-26 10:53:03 +00:00
Travis Howell
5ceb4b19b0 isSoundRunning always returns sound id in HE games
svn-id: r22176
2006-04-26 10:34:34 +00:00
Max Horn
a28250d660 Print a slightly more verbose error message when Roland patch isn't found
svn-id: r22175
2006-04-26 09:04:51 +00:00
Max Horn
1dba198cbf Proper fix for bug #1476651: Do not use File::exists to check for the presence of a directory described by an absolute path
svn-id: r22174
2006-04-26 08:36:55 +00:00
Max Horn
c940380314 Replace unneeded File::exists calls
svn-id: r22173
2006-04-26 08:35:54 +00:00
Max Horn
8fdcfedf19 Do not call static class methods as if they were instance methods
svn-id: r22172
2006-04-26 08:34:01 +00:00