Matthew Hoops
61b63d9e4d
SCI: Add 'robots' subdirectory (PQSWAT demo stores them there)
...
svn-id: r51405
2010-07-28 06:03:52 +00:00
Filippos Karapetis
284377fc24
SCI: Fixed menu reset in SCI0/SCI01 games when restarting
...
svn-id: r51309
2010-07-26 13:40:07 +00:00
Martin Kiewitz
9bea286e49
SCI: cache Planes for sci32
...
svn-id: r51249
2010-07-24 16:47:12 +00:00
Filippos Karapetis
8eca9d6acb
SCI: Fixed a bug when loading some saved games (sometimes, the execution stack wasn't cleared properly when loading and you couldn't save or restore)
...
svn-id: r51140
2010-07-22 12:38:48 +00:00
Filippos Karapetis
d53e5fbfb7
SCI: Removed the restoring parameter of the run_vm() function
...
svn-id: r51076
2010-07-20 23:15:07 +00:00
Martin Kiewitz
95ae668da0
SCI: don't initialize vocabulary twice
...
svn-id: r51032
2010-07-19 15:32:26 +00:00
Martin Kiewitz
b7b904f981
SCI: fix regression of r51027
...
we have to reset the parser when switching vocabulary
svn-id: r51031
2010-07-19 15:30:27 +00:00
Martin Kiewitz
2a0cff5c6d
SCI: implement foreign vocabulary support
...
not fully working, extended chars do not work currently as input
svn-id: r51027
2010-07-19 13:50:06 +00:00
Martin Kiewitz
72faf78b82
SCI: adding support to qfg4 to import qfg3 character data
...
svn-id: r50911
2010-07-15 06:04:52 +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
e807983e8f
SCI: removed unused debug flags, changed fileio debug prints to only happen on debugflag "file"
...
svn-id: r50782
2010-07-10 14:00:43 +00:00
Martin Kiewitz
42dfdea5df
SCI: added resetting of SoundCommandParser, so that error()s before that one got initialized wont crash
...
svn-id: r50619
2010-07-03 06:55:10 +00:00
Filippos Karapetis
bff3e89e48
SCI: Removed the FreeSCI music code
...
svn-id: r50532
2010-06-30 13:49:05 +00:00
Filippos Karapetis
9f1320d5cc
SCI: Made the SoundCommandParser a member of the SciEngine class and removed it from the EngineState, since it's static throughout the course of a game
...
svn-id: r50484
2010-06-29 09:00:08 +00:00
Filippos Karapetis
58732b9df1
SCI: More changes to the code for loading from the launcher
...
- Added support for the LSL2 menu bar object
- We no longer need a reference to the init() selector - it's always the first method of the menu bar object
svn-id: r50462
2010-06-28 22:01:26 +00:00
Filippos Karapetis
0b33cc0dab
Fixed loading of saved games from the launcher
...
svn-id: r50460
2010-06-28 20:58:32 +00:00
Filippos Karapetis
52ddc711d0
SCI: separated the graphics initialization code a bit
...
- Moved all of the graphics initialization code on startup inside initGraphics()
- Moved all of the screen initialization (resolution, upscaled graphics etc) code inside GfxScreen()
svn-id: r50412
2010-06-28 08:18:55 +00:00
Filippos Karapetis
048ceb73d3
SCI: Removed the hack for loading games from the launcher from run_vm(). This is now done on startup. This should fix loading from the launcher for LSL6
...
svn-id: r50406
2010-06-27 23:20:08 +00:00
Filippos Karapetis
4a60ff4090
Made the script initialization/uninitialization methods part of the segment manager
...
svn-id: r50402
2010-06-27 21:18:19 +00:00
Max Horn
6ee82a2027
SCI: Introduce SciGameId enum
...
svn-id: r50273
2010-06-25 16:16:29 +00:00
Max Horn
23d384e6b8
SCI: Remove SciEngine::getFlags()
...
svn-id: r50272
2010-06-25 16:12:38 +00:00
Martin Kiewitz
c6b0a5e896
SCI: detect, if SCI1.1 game is merging or copying palette instead of using gameIds. Also prints method used, when using debug command "version"
...
svn-id: r50261
2010-06-25 10:04:31 +00:00
Filippos Karapetis
9c1ec81d76
Strict mode: Turned several severe errors (almost all detection related) into errors, instead of warnings
...
svn-id: r49972
2010-06-17 23:45:38 +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
cfcbdf8656
SCI: Remove selector_name function, some cleanup
...
svn-id: r49966
2010-06-17 23:13:30 +00:00
Max Horn
337711d321
SCI: Get rid of duplicate _system member in SciEngine
...
svn-id: r49965
2010-06-17 23:12:59 +00:00
Max Horn
fabba55e6d
SCI: cleanup
...
svn-id: r49961
2010-06-17 23:11:34 +00:00
Filippos Karapetis
a7b76c04d9
Added handling of VMD video files in kResCheck, fixes video playing in GK2
...
svn-id: r49913
2010-06-17 00:07:03 +00:00
Filippos Karapetis
18dc295a33
Hooked the VMD player in kPlayVMD. The VMD videos in the demo of Phantasmagoria 1 are shown now (e.g. the intro and the chapter beginning)
...
svn-id: r49912
2010-06-16 23:30:22 +00:00
Martin Kiewitz
b25aba1d1e
SCI: SciGui/SciGui32 gone for good...
...
svn-id: r49860
2010-06-15 15:44:24 +00:00
Martin Kiewitz
ddb5a769a2
SCI: reset _gfxText16 for sci32, fixes gk1
...
svn-id: r49856
2010-06-15 13:52:06 +00:00
Martin Kiewitz
ba2de6dfa4
SCI: putting SciGui::init into SciEngine, removing it from SciGui(32)
...
svn-id: r49854
2010-06-15 13:34:40 +00:00
Max Horn
824dd44ddf
SCI: Revise how ResourceManager is instantiated.
...
This should allow for better error handling. Also, it
means that g_sci->getResMan() returns a valid value much sooner,
allowing me to simplify some code.
Also added a note about potentially replacing Common::FSList usage
by Common::Archive (and FSNode by Archive/ArchiveMember ?). This
might be a way to unify the addAppropriateSources variants again.
svn-id: r49825
2010-06-15 12:15:52 +00:00
Filippos Karapetis
60d8cc5180
Removed the now unused EngineState parameter of script_adjust_opcode_formats(), as well as an obsolete TODO
...
svn-id: r49684
2010-06-15 07:21:52 +00:00
Filippos Karapetis
cfdbfaa28e
SCI: Limit the screen refresh rate to 60fps
...
svn-id: r49647
2010-06-14 08:36:52 +00:00
Filippos Karapetis
711f679b7f
camelCase changes
...
svn-id: r49570
2010-06-10 11:43:20 +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
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
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
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
Filippos Karapetis
c486b77bb7
Fixed crash in SCI2.1 games
...
svn-id: r49546
2010-06-09 18:42:21 +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
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
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
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
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