Save width & height between runs

This commit is contained in:
Duilio Protti 2016-06-25 01:09:30 -03:00
parent 8f1d932e23
commit be690b9689
1 changed files with 8 additions and 1 deletions

View File

@ -72,6 +72,7 @@ public:
private:
void load_settings ();
void save_settings();
};
EXPORT InfinityPlugin aud_plugin_instance;
@ -104,7 +105,7 @@ void InfinityPlugin::clear ()
void InfinityPlugin::cleanup(void)
{
g_message("Infinity: cleanup()");
config_save_prefs();
save_settings();
renderer_finish();
}
@ -136,3 +137,9 @@ void InfinityPlugin::load_settings(void)
config_set_fps(aud_get_int(CFGID, "max_fps"));
config_set_show_title(aud_get_bool(CFGID, "show_title"));
}
void InfinityPlugin::save_settings(void)
{
aud_set_int(CFGID, "width", config_get_xres());
aud_set_int(CFGID, "height", config_get_yres());
}