aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-29 17:19:39 +0000
committerFilippos Karapetis2009-05-29 17:19:39 +0000
commitb1997801dad7f5ec30b6cb3c4a2e7574ed0cf590 (patch)
tree0b45674ae814c0053b85630098d455c596fe3763 /engines/sci/sci.cpp
parent797c35876b32988841f84318f1ef0f998f4926c9 (diff)
downloadscummvm-rg350-b1997801dad7f5ec30b6cb3c4a2e7574ed0cf590.tar.gz
scummvm-rg350-b1997801dad7f5ec30b6cb3c4a2e7574ed0cf590.tar.bz2
scummvm-rg350-b1997801dad7f5ec30b6cb3c4a2e7574ed0cf590.zip
- Moved some debug code into console.cpp, adding 3 console commands: 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
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 76febe5d5f..58fc65270e 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -55,44 +55,6 @@ const char *versionNames[9] = {
"SCI32"
};
-
-int c_quit(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
- script_abort_flag = 1; // Terminate VM
- _debugstate_valid = 0;
- _debug_seeking = 0;
- _debug_step_running = 0;
- return 0;
-}
-
-int c_die(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
- exit(0); //
- return 0;
-}
-
-static void init_console() {
- con_hook_command(&c_quit, "quit", "", "console: Quits gracefully");
- con_hook_command(&c_die, "die", "", "console: Quits ungracefully");
-
- /*
- con_hook_int(&(gfx_options.buffer_pics_nr), "buffer_pics_nr",
- "Number of pics to buffer in LRU storage\n");
- con_hook_int(&(gfx_options.pic0_dither_mode), "pic0_dither_mode",
- "Mode to use for pic0 dithering\n");
- con_hook_int(&(gfx_options.pic0_dither_pattern), "pic0_dither_pattern",
- "Pattern to use for pic0 dithering\n");
- con_hook_int(&(gfx_options.pic0_unscaled), "pic0_unscaled",
- "Whether pic0 should be drawn unscaled\n");
- con_hook_int(&(gfx_options.dirty_frames), "dirty_frames",
- "Dirty frames management\n");
- */
- con_hook_int(&gfx_crossblit_alpha_threshold, "alpha_threshold",
- "Alpha threshold for crossblitting\n");
- con_hook_int(&sci0_palette, "sci0_palette",
- "SCI0 palette- 0: EGA, 1:AGI/Amiga, 2:Grayscale\n");
- con_hook_int(&sci01_priority_table_flags, "sci01_priority_table_flags",
- "SCI01 priority table debugging flags: 1:Disable, 2:Print on change\n");
-}
-
SciEngine::SciEngine(OSystem *syst, const SciGameDescription *desc)
: Engine(syst), _gameDescription(desc) {
// Put your engine in a sane state, but do nothing big yet;
@@ -161,8 +123,6 @@ Common::Error SciEngine::run() {
// FIXME/TODO: Move some of the stuff below to init()
- init_console(); /* So we can get any output */
-
script_debug_flag = 0;
sci_version_t version;
@@ -238,7 +198,6 @@ Common::Error SciEngine::run() {
// since we cannot let the game control where saves are stored)
script_set_gamestate_save_dir(gamestate, "/");
- gfx_crossblit_alpha_threshold = 0x90;
GfxState gfx_state;
gfx_state.driver = &gfx_driver_scummvm;