aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
AgeCommit message (Collapse)Author
2009-05-31Removed script_error_flag and script_debug_flag, which were used to error ↵Filippos Karapetis
out if something went wrong and open the debugger console. Changed all the places where they were used to error() out instead, as ScummVM's debugger console can open on error() svn-id: r41073
2009-05-31SCI: Renamed some Vocabulary methods for clarity; also renamed ↵Max Horn
decypherSaidBlock -> decipherSaidBlock; some cleanup in Console::cmdSentenceFragments svn-id: r41072
2009-05-31SCI: Fixed loading; added 'const' keywords to several Vocabulary methodsMax Horn
svn-id: r41071
2009-05-31- Further objectification of the SCI vocabulary functionsFilippos Karapetis
- Rewrote the sci_opcodes enum so that it's easier to read - Made the engine error out if data is sent to an invalid selector (which is a fatal condition) svn-id: r41069
2009-05-31Further objectification of the SCI vocabulary functions. Removed the ↵Filippos Karapetis
"kernel_words" console command, as it's exactly the same as "parser_words" svn-id: r41065
2009-05-31The error() and warning() functions add ! and newline automatically. (I didn'tTorbjörn Andersson
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061
2009-05-31More objectification of the Vocabulary functionsFilippos Karapetis
svn-id: r41057
2009-05-31Typo.Johannes Schickel
svn-id: r41054
2009-05-30Started objectifying the vocabulary functions (WIP)Filippos Karapetis
svn-id: r41051
2009-05-30Moved the "songlib" command to console.cpp and removed the non-working ↵Filippos Karapetis
"set_vismap" command - we can view the different maps with "show_map", but it doesn't make much sense to redirect the game's graphics output to another screen map on demand svn-id: r41048
2009-05-30SCI: Added constructor&destructor to SfxStateMax Horn
svn-id: r41047
2009-05-30SCI: Made vocab_version static again (a global static var is bad, but a ↵Max Horn
really global var is worse); also clarified some FIXME comments that we want to avoid *any* non-const global var, no matter whether it is static or not svn-id: r41045
2009-05-30Reverted the vocab loading function to be like it was before commit #40979 ↵Filippos Karapetis
(but without the static variable) svn-id: r41044
2009-05-30Moved 4 mode commands to console.cpp: "sentence_fragments", "parser_nodes", ↵Filippos Karapetis
"status_bar" and "track_mouse" svn-id: r41043
2009-05-30SCI: Fix broken pointer after array re-allocation.Willem Jan Palenstijn
svn-id: r41042
2009-05-30- Moved 3 more commands to console.cpp: "draw_pic", "draw_rect" and ↵Filippos Karapetis
"fill_screen" - Removed some FreeSCI-specific variables for checking of the on-screen console - Removed the Control-1 key combo - the console command "visual_state" can be used for the same reason svn-id: r41040
2009-05-30Removed the "sfx_debuglog" command. Sound debug messages are now shown if ↵Filippos Karapetis
kDebugLevelSound is specified svn-id: r41039
2009-05-30- Fix various debugC calls (parameters passed were not correct)Johannes Schickel
- Fix unused variable warning in scriptdebug.cpp svn-id: r41038
2009-05-30- Moved the print_port, segment_info and segment_kill console commands to ↵Filippos Karapetis
console.cpp - Removed the unused gfx driver debug flags svn-id: r41036
2009-05-30- Removed debug_mode from the engine stateFilippos Karapetis
- Turned all SCIkwarn and SCIkdebug functions to ScummVM's debugC function - Placed some debug code in appropriate defines: DEBUG_PARSER, DEBUG_AVOIDPATH and DEBUG_SOUND - Removed the "debuglog" command and the "script_checkloads_flag" and "sci_debug_flags" variables svn-id: r41033
2009-05-30Moved 3 more debug commands to console.cpp ("simkey", "segment_table" and ↵Filippos Karapetis
"show_map") and removed the GFXWC macro. Some cleanup svn-id: r41032
2009-05-30Moved more script debug commands to console.cpp: "visual_state", ↵Filippos Karapetis
"dynamic_views", "dropped_views", "gc" and "gc_objects". Removed the "gfx_free_widgets" and "sleep" commands (they weren't really useful) svn-id: r41030
2009-05-30Moved some script debug commands to console.cpp: "clear_screen", ↵Filippos Karapetis
"redraw_screen", "save_game", "restore_game", "restart_game", "class_table", "parser_words", "current_port" and "parse_grammar" svn-id: r41029
2009-05-30Swapped the checks for suffixes and branches to first check for SCI1 ↵Filippos Karapetis
resources, and then for SCI0 resources (as in SCI1 games, tree branches are in resource 901, which coincides with the SCI0 suffix vocabulary resource 901) svn-id: r41026
2009-05-30Removed/replaced BREAKPOINTFilippos Karapetis
svn-id: r41025
2009-05-30SCI: Moved the rest of the console code out of sciconsole.cpp and into ↵Filippos Karapetis
console.cpp. "list" and "hexgrep" have been added to the console commands. parse_reg_t() has been moved to kmovement.cpp (as it's the only code using it). Note that the debug commands in scriptdebug.cpp have not been converted yet, so they don't work at the moment svn-id: r41024
2009-05-30Fixed a silly typo in commit #40979. Suffixes should be loaded correctly againFilippos Karapetis
svn-id: r41018
2009-05-29- Added brief Doxygen comments to the ResourceSync and AudioResource classes ↵Filippos Karapetis
to explain what they do - Removed the outdated info page on "codebugging" - Moved the "addresses" info page as a comment above parse_reg_t() - Removed con_hook_page() svn-id: r41013
2009-05-29- Moved some debug code into console.cpp, adding 3 console commands: ↵Filippos Karapetis
resource_types, sci0_palette and exit - Removed the "man" command - Removed the commands which set the SCI01 priority table flags and the crossblit alpha threshold (they're too specific, and not really useful anymore) - Removed some leftover debug code from gfxop_clear_box() svn-id: r41010
2009-05-29Fix warning about unused variable.Johannes Schickel
svn-id: r41005
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-05-29SCI: Revised code for listing savegamesMax Horn
svn-id: r40999
2009-05-29Merged res_view0.cpp and res_view1.cppFilippos Karapetis
svn-id: r40997
2009-05-29Some WIP code on the speech used in KQ6CDFilippos Karapetis
svn-id: r40996
2009-05-29Fixed a bug with the "size" console commandFilippos Karapetis
svn-id: r40995
2009-05-29SCI: Converted several fprintf(stderr) calls to warning/error (the remaining ↵Max Horn
fprintf calls should probably be replaced by suitable debug/debugC/debugN invocations) svn-id: r40993
2009-05-29SCI: Removing useless adlib-via-OSS codeMax Horn
svn-id: r40992
2009-05-29Fixed hopefully the last regression in kSetCursor. KQ5CD should work ↵Filippos Karapetis
correctly again svn-id: r40980
2009-05-29- Fixed usage of kSetCursor in SCI1.1 games (e.g. when starting KQ6 floppy)Filippos Karapetis
- Removed a static variable (vocab_version) - vocab.996 is now freed after creating the class table in SCI1 games, like in SCI0 games svn-id: r40979
2009-05-29Moved the "size" console debugger command to console.cpp and silenced a warningFilippos Karapetis
svn-id: r40978
2009-05-29CleanupFilippos Karapetis
svn-id: r40977
2009-05-29- Rewrote kSetCursor to be a bit simpler to understand, and got rid of ↵Filippos Karapetis
GF_SCI1_NEWSETCURSOR - Removed the 3 mouse pointer view, loop and cell variables (and their 3 "save" versions) from the game state, as they're all actually not used anywhere - Cleanup svn-id: r40976
2009-05-28SCI: Turned SfxState into a proper class (i.e., convert the sfx_ funcs to ↵Max Horn
member methods) svn-id: r40973
2009-05-28SCI: Fix potential dangling pointer more robustly,Willem Jan Palenstijn
by changing the executionStack implementation to a list. svn-id: r40971
2009-05-28CleanupFilippos Karapetis
svn-id: r40969
2009-05-28SCI: Merged NewPlayer and SfxPlayerMax Horn
svn-id: r40968
2009-05-28oopsMax Horn
svn-id: r40966
2009-05-28SCI: Merged SfxPlayer/NewPlayer code into sfx/core.cppMax Horn
svn-id: r40965
2009-05-28SCI: Fix potential dangling pointer after reallocationWillem Jan Palenstijn
svn-id: r40963
2009-05-28Merged some of the SCI1 and SCI1.1 view and loop drawing functionsFilippos Karapetis
svn-id: r40961