Martin Kiewitz
14e7ba5d91
SCI: kMemory issue in pq3 only for multilingual
...
adjusted comment accordingly
svn-id: r51702
2010-08-03 16:03:22 +00:00
Martin Kiewitz
4c7a6ac2d5
SCI: adding workaround for pq3 inside kMemory
...
fixing plot crimes warnings and bad text on screen
svn-id: r51693
2010-08-03 13:17:30 +00:00
Filippos Karapetis
9699f8291d
SCI: Ignoring non-critical script bug in QFG1VGA, when closing any conversation dialog with esc (doesn't affect gameplay in any manner)
...
svn-id: r51572
2010-08-01 11:10:14 +00:00
Martin Kiewitz
7f3ce51031
SCI: little cleanup
...
svn-id: r51539
2010-07-31 14:29:22 +00:00
Martin Kiewitz
2d76fe0092
SCI: kGameIsRestarting returns 2 when we restored
...
fixes castle of dr. brain save issue in puzzle room, fixes island of dr. brain save issue when saving in first room
svn-id: r51538
2010-07-31 14:09:42 +00:00
Martin Kiewitz
685c124a8e
SCI: speed throttler cleanup and iceman comment
...
svn-id: r51518
2010-07-30 21:29:45 +00:00
Filippos Karapetis
2ed45d3719
SCI: Moved all the static kernel-related tables in a separate file. Also, moved kStub, kStubNull and kDummy inside kmisc.cpp, together with the other misc kernel calls
...
svn-id: r51089
2010-07-21 14:50:31 +00:00
Max Horn
1d3a0f6dec
SCI: Turn global object g_debugState into SciEngine member var
...
svn-id: r50836
2010-07-12 23:20:33 +00:00
Martin Kiewitz
df6ead5f93
SCI: calling speed throttler as well from kPalette(setIntensity) if needed - fixes kq6 intro
...
svn-id: r50794
2010-07-10 22:27:28 +00:00
Max Horn
8ae9774a00
SCI: Turn more warnings into errors.
...
If one of these is triggered for you, you can add an exception to
the error, together with a comment explaining why this exception
is necessary. Ideally after verifying that the cause is a script
bug and not a bug in our code...
svn-id: r50442
2010-06-28 12:29:06 +00:00
Max Horn
6ee82a2027
SCI: Introduce SciGameId enum
...
svn-id: r50273
2010-06-25 16:16:29 +00:00
Filippos Karapetis
6d1f2d1d26
Fixed memory fragmentation warnings in Crazy Nick's games
...
svn-id: r50188
2010-06-23 17:30:18 +00:00
Max Horn
bb528d894c
SCI: Rewrap some overlong comments
...
svn-id: r50012
2010-06-18 09:37:06 +00:00
Max Horn
359be0c066
SCI: Change SciEngine's 'char *getGameID()' to 'Common::String getGameId()'
...
svn-id: r49968
2010-06-17 23:14:34 +00:00
Max Horn
8e07a1e167
SCI: Moved the event code a little bit around.
...
* Move sleep() from EventManager to SciEngine
* Rename EventManager methods: get -> getSciEvent, and
getFromScummVM -> getScummVMEvent
* Make scancode_rows static const
* Turn altify & numlockify from EventManager methods into static
functions (and comment out the currently unused numlockify)
svn-id: r49959
2010-06-17 23:10:37 +00:00
Martin Kiewitz
b25aba1d1e
SCI: SciGui/SciGui32 gone for good...
...
svn-id: r49860
2010-06-15 15:44:24 +00:00
Filippos Karapetis
377cfe6fef
Added a new kernel function, kEmpty, for really empty (not dummy, i.e. unimplemented) functions
...
svn-id: r49591
2010-06-11 07:47:57 +00:00
Filippos Karapetis
711f679b7f
camelCase changes
...
svn-id: r49570
2010-06-10 11:43:20 +00:00
Willem Jan Palenstijn
95b080f60b
Fix compile errors
...
svn-id: r49535
2010-06-09 08:49:37 +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
Filippos Karapetis
3c82b6578f
Now that EngineState is not deleted when loading games, we can move some more state-related variables to it, and remove several FIXME's about non-const global variables. Also, the entries in the data stack are now deleted when loading (fixes a memory leak - thanks to digitall for this).
...
svn-id: r49465
2010-06-06 23:00:33 +00:00
Filippos Karapetis
5d21ff280a
Silenced some superfluous warnings in KQ5CD
...
svn-id: r49294
2010-05-28 16:47:30 +00:00
Martin Kiewitz
830d17ed31
SCI: renaming MacIconBar to GfxMacIconBar
...
svn-id: r49202
2010-05-24 21:47:06 +00:00
Matthew Hoops
d49fb8f42d
Add support for showing the icon bar in SCI1.1 Mac.
...
svn-id: r49196
2010-05-24 17:21:11 +00:00
Filippos Karapetis
7cd9a23c0d
Remove the unused SCI_GAME_WAS_RESTARTED_AT_LEAST_ONCE flag
...
svn-id: r49161
2010-05-23 17:03:16 +00:00
Filippos Karapetis
9be4f6250c
Made shrink_execution_stack() a member of EngineState
...
svn-id: r49159
2010-05-23 16:44:36 +00:00
Filippos Karapetis
c874ff15a8
Cleaned up the game ID code:
...
- The game ID is now obtained from ScummVM ID directly, not by converting Sierra's internal ID
- Moved the code which reads the internal Sierra ID inside the resource manager
- Moved the code which converts the internal Sierra ID to ScummVM's IDs together with the rest of the detection code
svn-id: r49152
2010-05-23 10:28:03 +00:00
Matthew Hoops
3dda73d9a2
Add initial support for KQ6 Mac. Wrapper functions for read/writing to pointers are now used (found in util.*) for code that has different endianness in SCI1.1+ Mac games. Add support for Mac 'snd ' and 'CURS' resources. QFG1 Mac is not yet playable due to script compression.
...
svn-id: r49070
2010-05-18 04:17:58 +00:00
Martin Kiewitz
4119fdb9a9
SCI: adding speed throttler special case for iceman / submarine control room
...
svn-id: r49056
2010-05-17 09:32:16 +00:00
Max Horn
2e68de1e5a
SCI: Turn kernel_sleep() into SciEvent::sleep()
...
svn-id: r48119
2010-02-23 22:47:53 +00:00
Max Horn
ac4d325e0d
SCI: Add global g_sci pointer to the active SciEngine instance
...
svn-id: r48046
2010-02-13 17:42:49 +00:00
Walter van Niftrik
1e67b56eee
SCI: Revert r47925 and put fix inside GC instead.
...
svn-id: r47940
2010-02-06 19:41:55 +00:00
Walter van Niftrik
38b0a148e6
SCI: Don't call garbage collector directly from kFlushResources() as this is no longer safe.
...
svn-id: r47925
2010-02-06 04:13:00 +00:00
Matthew Hoops
c72c2ff711
kPlatform(0) should return the SCI platform number. Fixes playing AVI's in KQ7 Windows. Also, adding/updating detection entries for KQ7 Windows.
...
svn-id: r47791
2010-02-01 04:14:16 +00:00
Walter van Niftrik
a92bb6193b
SCI: Implement kMemorySegment().
...
svn-id: r47776
2010-01-31 19:47:54 +00:00
Walter van Niftrik
473d8b7c2f
SCI: Add string support for odd-offset pointers into reg_t-based segments.
...
svn-id: r47572
2010-01-26 19:51:08 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Eugene Sandulenko
fb178c0a62
Mark lsl3 as a workaround.
...
svn-id: r47347
2010-01-17 20:23:11 +00:00
Martin Kiewitz
35c2469c0b
SCI: speed throttler - hardcoded exception for room 290/lsl3, should fix pushup count later in the game
...
svn-id: r47346
2010-01-17 20:17:00 +00:00
Martin Kiewitz
3e44180e47
SCI: speed throttler changed, now gets triggered by kAnimate, removed initial no-delay, i'm still getting animation now in iceman and sq3, slow palette animation in longbow fixed
...
svn-id: r47343
2010-01-17 18:41:28 +00:00
Filippos Karapetis
84cd8d2dc7
Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purpose
...
svn-id: r47007
2010-01-05 01:22:16 +00:00
Matthew Hoops
1f2c92076b
Fix the GK1 CD intro sequence (regression from r46839, which fixed a regression from r46656). kPlatform with no arguments is different in SCI32.
...
svn-id: r46874
2010-01-02 03:44:40 +00:00
Filippos Karapetis
763c59bd46
Fixed KQ5CD (regression from rev. 46656)
...
svn-id: r46839
2010-01-01 17:16:12 +00:00
Matthew Hoops
264bec306a
Implement kPlatform subfunctions 0 and 2, and stub 1 and 3 (CD speed and CD check). This fixes the DOS version of GK1 CD to play the SEQ's instead of the AVI's.
...
svn-id: r46656
2009-12-27 19:16:06 +00:00
Martin Kiewitz
a5f1808c83
SCI: SciEvent created, kernel_sleep() created
...
svn-id: r46252
2009-12-04 17:38:24 +00:00
Johannes Schickel
0867129399
Formatting.
...
svn-id: r45553
2009-10-30 23:44:12 +00:00
Filippos Karapetis
1c158c52a1
Cleaned up kPlatform() a bit, and changed it to return appropriate values for the CD hires version of KQ6
...
svn-id: r45551
2009-10-30 22:53:00 +00:00
Martin Kiewitz
fa627f4233
SCI: kGameIsRestarting - another change, setting back delay back to 30msecs, but no delay during initial 50 calls. This seems to make qfg2 and iceman happy.
...
svn-id: r45376
2009-10-25 20:12:12 +00:00
Martin Kiewitz
c0235a268d
SCI: kGameIsRestarting - changing speed throttler to 10 msecs, lsl5 is still "somewhat" playable, codename iceman and qfg2 didnt show some animations cause of the higher delay
...
svn-id: r45375
2009-10-25 20:03:10 +00:00
Martin Kiewitz
9c9181eed6
SCI: speed throttler moved to kGameIsRestarting for all games. Also made the delay shorter. sq3 now seems to work fine, kq1 also has animations and lsl5 mud wrestling is also working correctly.
...
svn-id: r45345
2009-10-23 11:25:48 +00:00