feat: add support for stretching ImGui output to window and return to selector functionality

This commit is contained in:
moonpower
2026-02-02 00:29:25 +03:00
parent 25add6ada7
commit 7efbae3f5f
7 changed files with 104 additions and 17 deletions

View File

@@ -153,6 +153,7 @@ void EmulatorConfig::load() {
frontendSettings.icon = FrontendSettings::iconFromString(toml::find_or<std::string>(ui, "WindowIcon", "rpog"));
frontendSettings.language = toml::find_or<std::string>(ui, "Language", "en");
frontendSettings.showImGuiDebugPanel = toml::find_or<toml::boolean>(ui, "ShowImGuiDebugPanel", true);
frontendSettings.stretchImGuiOutputToWindow = toml::find_or<toml::boolean>(ui, "StretchImGuiOutputToWindow", false);
}
}
}
@@ -222,6 +223,7 @@ void EmulatorConfig::save() {
data["UI"]["WindowIcon"] = std::string(FrontendSettings::iconToString(frontendSettings.icon));
data["UI"]["Language"] = frontendSettings.language;
data["UI"]["ShowImGuiDebugPanel"] = frontendSettings.showImGuiDebugPanel;
data["UI"]["StretchImGuiOutputToWindow"] = frontendSettings.stretchImGuiOutputToWindow;
std::ofstream file(path, std::ios::out);
file << data;