Add portable build option

This commit is contained in:
wheremyfoodat 2023-09-16 23:05:35 +03:00
parent 1f8194dfa3
commit 20b692ae72
3 changed files with 16 additions and 3 deletions

View file

@ -36,6 +36,7 @@ void EmulatorConfig::load(const std::filesystem::path& path) {
auto general = generalResult.unwrap();
discordRpcEnabled = toml::find_or<toml::boolean>(general, "EnableDiscordRPC", false);
usePortableBuild = toml::find_or<toml::boolean>(general, "UsePortableBuild", false);
}
}
@ -102,6 +103,7 @@ void EmulatorConfig::save(const std::filesystem::path& path) {
}
data["General"]["EnableDiscordRPC"] = discordRpcEnabled;
data["General"]["UsePortableBuild"] = usePortableBuild;
data["GPU"]["EnableShaderJIT"] = shaderJitEnabled;
data["GPU"]["Renderer"] = std::string(Renderer::typeToString(rendererType));