aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kmisc.cpp
AgeCommit message (Collapse)Author
2010-07-21SCI: Moved all the static kernel-related tables in a separate file. Also, ↵Filippos Karapetis
moved kStub, kStubNull and kDummy inside kmisc.cpp, together with the other misc kernel calls svn-id: r51089
2010-07-12SCI: Turn global object g_debugState into SciEngine member varMax Horn
svn-id: r50836
2010-07-10SCI: calling speed throttler as well from kPalette(setIntensity) if needed - ↵Martin Kiewitz
fixes kq6 intro svn-id: r50794
2010-06-28SCI: Turn more warnings into errors.Max Horn
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-25SCI: Introduce SciGameId enumMax Horn
svn-id: r50273
2010-06-23Fixed memory fragmentation warnings in Crazy Nick's gamesFilippos Karapetis
svn-id: r50188
2010-06-18SCI: Rewrap some overlong commentsMax Horn
svn-id: r50012
2010-06-17SCI: Change SciEngine's 'char *getGameID()' to 'Common::String getGameId()'Max Horn
svn-id: r49968
2010-06-17SCI: Moved the event code a little bit around.Max Horn
* 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-15SCI: SciGui/SciGui32 gone for good...Martin Kiewitz
svn-id: r49860
2010-06-11Added a new kernel function, kEmpty, for really empty (not dummy, i.e. ↵Filippos Karapetis
unimplemented) functions svn-id: r49591
2010-06-10camelCase changesFilippos Karapetis
svn-id: r49570
2010-06-09Fix compile errorsWillem Jan Palenstijn
svn-id: r49535
2010-06-08Merged the restarting_flags, script_abort_flag, and restoring members of the ↵Filippos Karapetis
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-06Now that EngineState is not deleted when loading games, we can move some ↵Filippos Karapetis
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-05-28Silenced some superfluous warnings in KQ5CDFilippos Karapetis
svn-id: r49294
2010-05-24SCI: renaming MacIconBar to GfxMacIconBarMartin Kiewitz
svn-id: r49202
2010-05-24Add support for showing the icon bar in SCI1.1 Mac.Matthew Hoops
svn-id: r49196
2010-05-23Remove the unused SCI_GAME_WAS_RESTARTED_AT_LEAST_ONCE flagFilippos Karapetis
svn-id: r49161
2010-05-23Made shrink_execution_stack() a member of EngineStateFilippos Karapetis
svn-id: r49159
2010-05-23Cleaned up the game ID code:Filippos Karapetis
- 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-18Add initial support for KQ6 Mac. Wrapper functions for read/writing to ↵Matthew Hoops
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-17SCI: adding speed throttler special case for iceman / submarine control roomMartin Kiewitz
svn-id: r49056
2010-02-23SCI: Turn kernel_sleep() into SciEvent::sleep()Max Horn
svn-id: r48119
2010-02-13SCI: Add global g_sci pointer to the active SciEngine instanceMax Horn
svn-id: r48046
2010-02-06SCI: Revert r47925 and put fix inside GC instead.Walter van Niftrik
svn-id: r47940
2010-02-06SCI: Don't call garbage collector directly from kFlushResources() as this is ↵Walter van Niftrik
no longer safe. svn-id: r47925
2010-02-01kPlatform(0) should return the SCI platform number. Fixes playing AVI's in ↵Matthew Hoops
KQ7 Windows. Also, adding/updating detection entries for KQ7 Windows. svn-id: r47791
2010-01-31SCI: Implement kMemorySegment().Walter van Niftrik
svn-id: r47776
2010-01-26SCI: Add string support for odd-offset pointers into reg_t-based segments.Walter van Niftrik
svn-id: r47572
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-17Mark lsl3 as a workaround.Eugene Sandulenko
svn-id: r47347
2010-01-17SCI: speed throttler - hardcoded exception for room 290/lsl3, should fix ↵Martin Kiewitz
pushup count later in the game svn-id: r47346
2010-01-17SCI: speed throttler changed, now gets triggered by kAnimate, removed ↵Martin Kiewitz
initial no-delay, i'm still getting animation now in iceman and sq3, slow palette animation in longbow fixed svn-id: r47343
2010-01-05Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purposeFilippos Karapetis
svn-id: r47007
2010-01-02Fix the GK1 CD intro sequence (regression from r46839, which fixed a ↵Matthew Hoops
regression from r46656). kPlatform with no arguments is different in SCI32. svn-id: r46874
2010-01-01Fixed KQ5CD (regression from rev. 46656)Filippos Karapetis
svn-id: r46839
2009-12-27Implement kPlatform subfunctions 0 and 2, and stub 1 and 3 (CD speed and CD ↵Matthew Hoops
check). This fixes the DOS version of GK1 CD to play the SEQ's instead of the AVI's. svn-id: r46656
2009-12-04SCI: SciEvent created, kernel_sleep() createdMartin Kiewitz
svn-id: r46252
2009-10-30Formatting.Johannes Schickel
svn-id: r45553
2009-10-30Cleaned up kPlatform() a bit, and changed it to return appropriate values ↵Filippos Karapetis
for the CD hires version of KQ6 svn-id: r45551
2009-10-25SCI: kGameIsRestarting - another change, setting back delay back to 30msecs, ↵Martin Kiewitz
but no delay during initial 50 calls. This seems to make qfg2 and iceman happy. svn-id: r45376
2009-10-25SCI: kGameIsRestarting - changing speed throttler to 10 msecs, lsl5 is still ↵Martin Kiewitz
"somewhat" playable, codename iceman and qfg2 didnt show some animations cause of the higher delay svn-id: r45375
2009-10-23SCI: speed throttler moved to kGameIsRestarting for all games. Also made the ↵Martin Kiewitz
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-22SCI: kGameIsRestarting - implemented speed throttler in here for sci0/sci01 ↵Martin Kiewitz
games, test only! svn-id: r45342
2009-10-09Removed the wrong code for kGetTime case 1 in some SCI0 games - that case ↵Filippos Karapetis
has always remained the same in all SCI versions. Added a warning in case we got some other case than 0 or 1 in SCI0 games svn-id: r44855
2009-10-08Introduce a new struct TimeDate, replacing struct tm in client code. May ↵Max Horn
lead to compilation issues in ports, which should be trivial to fix, though svn-id: r44793
2009-10-06- Fixed kGetTime() againFilippos Karapetis
- Removed the odd way of calculating elapsed time in SciGui(). We got _system->getMillis() for that purpose - Replaced the code in SciGui::wait() with the one in SciGui32::wait (which works fine, and is correct). The code in SciGui() was not polling for events while waiting, either svn-id: r44712
2009-10-04SCI: Really remove sci/gui/gui.h include from engine/state.hMax Horn
svn-id: r44644
2009-10-04SCI: Rename EngineState::segMan to _segManMax Horn
svn-id: r44629