diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-16 17:28:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-16 17:28:29 +0300 |
commit | fbe0f1c2b139842235446c9a6c6933562ce3dfa2 (patch) | |
tree | b6e9a90bdd706f2e8e81aa5aaf738692df382351 /src/main.cpp | |
parent | ba9fac97eb0afba27e7d35bef34255c8ac436295 (diff) | |
download | mv-fbe0f1c2b139842235446c9a6c6933562ce3dfa2.tar.gz mv-fbe0f1c2b139842235446c9a6c6933562ce3dfa2.tar.bz2 mv-fbe0f1c2b139842235446c9a6c6933562ce3dfa2.tar.xz mv-fbe0f1c2b139842235446c9a6c6933562ce3dfa2.zip |
add init and quit code for SDL_Image and SDL_Mixer.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index bec85f4c8..68d81eda0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,6 +48,9 @@ #include <windows.h> #endif +#include <SDL_image.h> +#include <SDL_mixer.h> + #include "debug.h" char *selfName = nullptr; @@ -292,6 +295,8 @@ int main(int argc, char *argv[]) atexit((void(*)()) PHYSFS_deinit); XML::initXML(); + IMG_Init(IMG_INIT_PNG); + Mix_Init(MIX_INIT_OGG); #ifdef WIN32 SetCurrentDirectory(PhysFs::getBaseDir()); @@ -311,6 +316,10 @@ int main(int argc, char *argv[]) } delete client; client = nullptr; + + Mix_Quit(); + IMG_Quit(); + #ifdef DUMP_LEAKED_RESOURCES reportRWops(); #endif |