diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/commandLine.cpp | 2 | ||||
-rw-r--r-- | base/main.cpp | 3 | ||||
-rw-r--r-- | base/plugins.h | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 6fd020cb15..44007c494a 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -237,6 +237,8 @@ void registerDefaults() { ConfMan.registerDefault("record_temp_file_name", "record.tmp"); ConfMan.registerDefault("record_time_file_name", "record.time"); + ConfMan.registerDefault("gui_saveload_chooser", "grid"); + ConfMan.registerDefault("gui_saveload_last_pos", "0"); } // diff --git a/base/main.cpp b/base/main.cpp index 25e1b881cc..355a65f883 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -57,6 +57,7 @@ #include "graphics/cursorman.h" #include "graphics/fontman.h" +#include "graphics/yuv_to_rgb.h" #ifdef USE_FREETYPE2 #include "graphics/fonts/ttf.h" #endif @@ -511,6 +512,8 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { #ifdef USE_FREETYPE2 Graphics::shutdownTTF(); #endif + EngineManager::destroy(); + Graphics::YUVToRGBManager::destroy(); return 0; } diff --git a/base/plugins.h b/base/plugins.h index fffb5fb910..4409c9eaea 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -205,6 +205,10 @@ typedef Common::Array<Plugin *> PluginList; template<class PO_t> class PluginSubclass : public Plugin { public: + PO_t &operator*() const { + return *(PO_t *)_pluginObject; + } + PO_t *operator->() const { return (PO_t *)_pluginObject; } |