app: move config saving to App::Exit

This commit is contained in:
Hyper 2024-12-11 23:05:37 +00:00
parent 05ec19874e
commit 86c60e7bbe
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@
#include <kernel/function.h>
#include <ui/window.h>
#include <patches/audio_patches.h>
#include <user/config.h>
#include <os/process.h>
void App::Restart(std::vector<std::string> restartArgs)
@ -13,6 +14,8 @@ void App::Restart(std::vector<std::string> restartArgs)
void App::Exit()
{
Config::Save();
#if _WIN32
ExitProcess(0);
#endif

View file

@ -18,7 +18,6 @@ int Window_OnSDLEvent(void*, SDL_Event* event)
switch (event->type)
{
case SDL_QUIT:
Config::Save();
App::Exit();
break;