From 3b5a14916d43b2133c103ec168678bc98e224512 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 23 Mar 2009 14:24:10 +0000 Subject: Cleanup svn-id: r39633 --- engines/sci/engine/game.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'engines/sci/engine/game.cpp') diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp index 564bbf6598..d7c5249ca8 100644 --- a/engines/sci/engine/game.cpp +++ b/engines/sci/engine/game.cpp @@ -92,14 +92,6 @@ static void _free_vocabulary(EngineState *s) { s->opcodes = NULL; } - -static int _init_graphics_input(EngineState *s) { - s->pic_priority_table = NULL; - s->pics = NULL; - s->pics_nr = 0; - return 0; -} - static void _sci1_alloc_system_colors(EngineState *s) { gfx_color_t black = { PaletteEntry(0, 0, 0), 0, 0, 0, GFX_MASK_VISUAL }; gfxop_set_system_color(s->gfx_state, 0, &black); @@ -509,8 +501,9 @@ int script_init_engine(EngineState *s, sci_version_t version) { sciprintf("Engine initialized\n"); - if (_init_graphics_input(s)) - return 1; + s->pic_priority_table = NULL; + s->pics = NULL; + s->pics_nr = 0; return 0; } @@ -525,11 +518,14 @@ void script_set_gamestate_save_dir(EngineState *s, const char *path) { void internal_stringfrag_strncpy(EngineState *s, reg_t *dest, reg_t *src, int len); +#if 0 +// Unreferenced - removed void script_set_gamestate_save_dir(EngineState *s, reg_t path) { SystemString *str = &s->sys_strings->strings[SYS_STRING_SAVEDIR]; reg_t *srcbuf = kernel_dereference_reg_pointer(s, path, 1); internal_stringfrag_strncpy(s, str->value, srcbuf, MAX_SAVE_DIR_SIZE); } +#endif void script_free_vm_memory(EngineState *s) { sciprintf("Freeing VM memory\n"); -- cgit v1.2.3