devtools: persist fsr configs (#2852)

Saves FSR config to imgui.ini so it won't reset every startup
This commit is contained in:
Vinicius Rangel
2025-04-27 13:32:29 -03:00
committed by GitHub
parent 410313ca87
commit cef795b80b
4 changed files with 27 additions and 2 deletions

View File

@@ -112,6 +112,8 @@ void Initialize(const ::Vulkan::Instance& instance, const Frontend::WindowSDL& w
if (const auto dpi = SDL_GetWindowDisplayScale(window.GetSDLWindow()); dpi > 0.0f) {
GetIO().FontGlobalScale = dpi;
}
std::at_quick_exit([] { SaveIniSettingsToDisk(GetIO().IniFilename); });
}
void OnResize() {