#include "referencecache.h"
#include "stacktrace.h"
+#ifdef WIN32
+#include <windows.h>
+#endif
+
void show_splash();
void hide_splash();
SaveCommandMap(path.c_str());
}
+void user_shortcuts_save()
+{
+ StringOutputStream path(256);
+ path << SettingsPath_get() << g_pGameDescription->mGameFile.c_str() << '/';
+ SaveCommandMap(path.c_str());
+}
+
int main (int argc, char* argv[])
{
crt_init();
streams_init();
+#ifdef WIN32
+ HMODULE lib;
+ lib = LoadLibrary("dwmapi.dll");
+ if(lib != 0)
+ {
+ void (WINAPI *DwmEnableComposition) (bool bEnable) = (void (WINAPI *) (bool bEnable)) GetProcAddress(lib, "DwmEnableComposition");
+ if(DwmEnableComposition)
+ DwmEnableComposition(FALSE);
+ FreeLibrary(lib);
+ }
+#endif
+
gtk_disable_setlocale();
gtk_init(&argc, &argv);
delete g_pParentWnd;
+ user_shortcuts_save();
+
global_accel_destroy();
Radiant_Shutdown();