mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-09-05 11:07:26 -04:00
app: move config saving to App::Exit
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#include <kernel/function.h>
|
#include <kernel/function.h>
|
||||||
#include <ui/window.h>
|
#include <ui/window.h>
|
||||||
#include <patches/audio_patches.h>
|
#include <patches/audio_patches.h>
|
||||||
|
#include <user/config.h>
|
||||||
#include <os/process.h>
|
#include <os/process.h>
|
||||||
|
|
||||||
void App::Restart(std::vector<std::string> restartArgs)
|
void App::Restart(std::vector<std::string> restartArgs)
|
||||||
@@ -13,6 +14,8 @@ void App::Restart(std::vector<std::string> restartArgs)
|
|||||||
|
|
||||||
void App::Exit()
|
void App::Exit()
|
||||||
{
|
{
|
||||||
|
Config::Save();
|
||||||
|
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
ExitProcess(0);
|
ExitProcess(0);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ int Window_OnSDLEvent(void*, SDL_Event* event)
|
|||||||
switch (event->type)
|
switch (event->type)
|
||||||
{
|
{
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
Config::Save();
|
|
||||||
App::Exit();
|
App::Exit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user