Max Horn
5424d8aecb
SCI: Get rid of DEFUN, cleanup
...
svn-id: r49579
2010-06-10 15:25:54 +00:00
Max Horn
874151f5d1
SCI: Cleanup kernel signature code a bit.
...
* Moved KSIG_SPEC_* from kernel.h to kernel.cpp
* Clarified the comment on KSIG_SPEC_* a bit
* Changed the other KSIG_ #defines into an enum
* Removed KSIG_TERMINATOR and KSIG_SPEC_ARITMETIC (sic)
svn-id: r49578
2010-06-10 15:25:36 +00:00
Max Horn
8295eb09cd
SCI: Fix Console::cmdValueType to handle all possible reg types
...
svn-id: r49577
2010-06-10 15:25:18 +00:00
Matthew Hoops
6ad04a4a96
Add support for AIFF sound in SCI32 Mac games and add support for AIFF/WAVE audio36 patches; minor cleanup.
...
svn-id: r49576
2010-06-10 15:06:25 +00:00
Filippos Karapetis
5330e632de
Don't attempt to modify the printLang selector if it doesn't exist
...
svn-id: r49575
2010-06-10 14:02:20 +00:00
Yotam Barnoy
d89da56f47
PSP: swapped order of checks in renderAll. It's a little cheaper this way.
...
svn-id: r49574
2010-06-10 14:01:30 +00:00
Max Horn
afa2af5dfb
SCI: cleanup
...
svn-id: r49573
2010-06-10 13:43:38 +00:00
Yotam Barnoy
c8ee854600
PSP: switched to psp semaphores rather than SDL's. Removal of SDL is almost complete.
...
svn-id: r49572
2010-06-10 13:41:29 +00:00
Filippos Karapetis
711f679b7f
camelCase changes
...
svn-id: r49570
2010-06-10 11:43:20 +00:00
Filippos Karapetis
944b511633
Fixed regression from commit #49564
...
svn-id: r49569
2010-06-10 11:35:15 +00:00
Filippos Karapetis
93f33c7dab
Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, some camelCase changes
...
svn-id: r49568
2010-06-10 11:18:10 +00:00
Filippos Karapetis
a635b94823
Pic port saving/loading is only used in SCI0-SCI11
...
svn-id: r49567
2010-06-10 10:27:13 +00:00
Paul Gilbert
4d87342847
Added extra code and support methods for properly clearing up backgrounds and used sprites when an animation sequence ends
...
svn-id: r49566
2010-06-10 10:20:25 +00:00
Martin Kiewitz
8a5762c52d
SCI: set picport when loading saved games
...
svn-id: r49565
2010-06-10 10:15:32 +00:00
Filippos Karapetis
cc6f5eb3e4
Unified invokeSelector() and invokeSelectorArgv(), and removed the INV_SEL kludge. Also, removed the selectorInvocation parameter - if invokeSelector() fails, the error is in most cases unrecoverable, and the error description thrown covers all cases where kContinueOnInvalidSelector was used. This uncovered a bug too: in some places, non reg_t parameters were parsed
...
svn-id: r49564
2010-06-10 09:22:30 +00:00
Filippos Karapetis
eb4ec596cd
Use the SELECTOR() macro for readability
...
svn-id: r49563
2010-06-10 09:18:57 +00:00
Filippos Karapetis
0ab7c908bb
Removed the pointer to the game object from the EngineState class
...
svn-id: r49562
2010-06-10 08:11:38 +00:00
Filippos Karapetis
50c1f4e545
Moved the MoveCountType enum above the GameFeatures class, as it's the only class using it
...
svn-id: r49561
2010-06-10 07:48:32 +00:00
Filippos Karapetis
abc5f97608
Fixed compilation with the old music code
...
svn-id: r49560
2010-06-10 07:41:48 +00:00
Filippos Karapetis
9b8e4e8359
Moved all of the game init/run/exit logic inside the SciEngine class
...
svn-id: r49559
2010-06-10 07:32:05 +00:00
Torbjörn Andersson
ede57eb61b
Removed some unnecessary whitespace. (Or should I have saved that for the
...
rapidly approaching, much coveted r50000? :-)
svn-id: r49558
2010-06-10 04:29:34 +00:00
Filippos Karapetis
14437e6394
The segment manager is now initialized before the graphics subsystem. Fixes the detection of the fastCast object on startup, and hence fixes LSL1VGA
...
svn-id: r49553
2010-06-09 21:41:20 +00:00
Angus Lees
d44efa817f
Fix dirty tracking in paletted textures.
...
svn-id: r49552
2010-06-09 21:31:48 +00:00
Angus Lees
d8050029f9
Improve build instructions to include themeengine patch and
...
scummmodern.zip compression.
svn-id: r49551
2010-06-09 21:30:06 +00:00
Martin Kiewitz
e533289e07
SCI: document raw lipsync data skipping in readAudioMapSCI11()
...
svn-id: r49550
2010-06-09 20:32:55 +00:00
Filippos Karapetis
5d71ae952f
The EngineState is no longer recreated when a game is restored, thus we don't need to refresh pointers to it
...
svn-id: r49549
2010-06-09 20:12:25 +00:00
Filippos Karapetis
c486b77bb7
Fixed crash in SCI2.1 games
...
svn-id: r49546
2010-06-09 18:42:21 +00:00
Filippos Karapetis
d191c9d0f9
Limit kPortrait to be used in the Windows version of KQ6 only
...
svn-id: r49545
2010-06-09 17:04:03 +00:00
Filippos Karapetis
a542ce174b
Proper fix for kernel name loading (regression from commit #49537 )
...
svn-id: r49544
2010-06-09 15:28:14 +00:00
Filippos Karapetis
3c9ab81a07
Fixed regression from commit #49537
...
svn-id: r49543
2010-06-09 15:21:10 +00:00
Filippos Karapetis
32d7f7ddb0
Disabled the mouse warping code, as it can be annoying in windowed mode
...
svn-id: r49542
2010-06-09 14:16:00 +00:00
Yotam Barnoy
f770156dcc
PSP: fixed missing frame issue with kyrandia and possibly other games by calling updateScreen() from pollEvent() once in a while
...
svn-id: r49541
2010-06-09 14:15:51 +00:00
Filippos Karapetis
015262a0ee
Fixed compilation when the old sound code is used
...
svn-id: r49540
2010-06-09 14:06:16 +00:00
Johannes Schickel
5b2a60d049
Rewind the underlying audio stream on LoopingAudioStream creation.
...
Also mention in the documentation that both LoopingAudioStream and
SubLoopingAudioStream do rewind the underlying in their constructor.
svn-id: r49539
2010-06-09 13:34:15 +00:00
Martin Kiewitz
0f2e6b0f85
SCI: fix multiple playing of the same sound in a row (without using looping) - thx to LordHoto for helping me finding this one out - fixes pharkas right at the start (hammering only played once)
...
svn-id: r49538
2010-06-09 13:27:59 +00:00
Filippos Karapetis
2c629a04dd
Merged script_init_engine() and game_init() and cleaned up SciEngine::run() a bit
...
svn-id: r49537
2010-06-09 10:45:54 +00:00
Filippos Karapetis
536b2614e8
Globals from script 0 are now initialized in script_init_engine(), and are accessed from the relevant variables pointer. Removed direct reference to script 0 from the engine state
...
svn-id: r49536
2010-06-09 09:17:48 +00:00
Willem Jan Palenstijn
95b080f60b
Fix compile errors
...
svn-id: r49535
2010-06-09 08:49:37 +00:00
Filippos Karapetis
5cb311ee2c
Renamed the SciEvent class to EventManager, to separate it from the sciEvent structure, and removed it from the engine state
...
svn-id: r49534
2010-06-09 07:59:42 +00:00
Filippos Karapetis
10aeb33a42
Merged restAdjust and restAdjustCur, as we don't save the restAdjust modifier inside saved games (rightfully so). Also, the segment manager is now reset inside the main loop, when the game is restarted, not in game_exit()
...
svn-id: r49533
2010-06-09 07:32:17 +00:00
Angus Lees
b494d46fdd
chmod +x mkmanifest.pl
...
svn-id: r49526
2010-06-08 23:29:48 +00:00
Filippos Karapetis
81907a8e6f
Don't shrink the stack after reconstructing it, when loading a saved game. Fixes game restoring in some games (e.g. LSL3), a regression from commit #49376
...
svn-id: r49525
2010-06-08 23:29:35 +00:00
Martin Kiewitz
dc8b826f5e
SCI: set default palette after initializing music driver, fixes palette getting messed up when using mt32 emulation
...
svn-id: r49523
2010-06-08 22:00:59 +00:00
Filippos Karapetis
eafc63e572
Cleanup
...
svn-id: r49521
2010-06-08 21:21:19 +00:00
Martin Kiewitz
6474eaa1b2
SCI: check for SOL header in audio36 patches
...
svn-id: r49520
2010-06-08 21:15:53 +00:00
Filippos Karapetis
9304b5fbeb
Merged the restarting_flags, script_abort_flag, and restoring members of the EngineState class into one variable, abortScriptProcessing. The flag kept to signify a game restart has been placed in a boolean, gameWasRestarted
...
svn-id: r49518
2010-06-08 21:05:46 +00:00
David Turner
641ffa5ee3
Modification to remove false positive "Possible divide by zero" warnings given by cppcheck-1.43.
...
These are incorrect as '/' operator has precedence over >>, but this does improve readability anyway.
This bug in cppcheck has already been corrected: http://sourceforge.net/apps/trac/cppcheck/ticket/1714
svn-id: r49517
2010-06-08 20:29:33 +00:00
Filippos Karapetis
73010518b2
Fixed compilation when the SCI32 code is disabled
...
svn-id: r49514
2010-06-08 19:36:33 +00:00
Filippos Karapetis
67690e89a3
Merged _game_run() inside game_run(). Some cleanup
...
svn-id: r49513
2010-06-08 18:44:27 +00:00
Filippos Karapetis
3d0ac2a676
Merged sync_SegManagerPtr() inside EngineState::saveLoadWithSerializer()
...
svn-id: r49512
2010-06-08 18:23:38 +00:00