mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
FEXConfig: Adds AOT options to the UI
This commit is contained in:
1 parent
4998d35ec5
commit
80e66a36eb
1 file changed
+22
@@ -436,6 +436,28 @@ namespace {
|
||||
ConfigChanged = true;
|
||||
}
|
||||
|
||||
ImGui::Text("Ahead Of Time JIT Options:");
|
||||
Value = LoadedConfig->Get(FEXCore::Config::ConfigOption::CONFIG_AOTIRGENERATE);
|
||||
bool AOTGenerate = Value.has_value() && **Value == "1";
|
||||
if (ImGui::Checkbox("Generate", &AOTGenerate)) {
|
||||
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_AOTIRGENERATE, AOTGenerate ? "1" : "0");
|
||||
ConfigChanged = true;
|
||||
}
|
||||
|
||||
Value = LoadedConfig->Get(FEXCore::Config::ConfigOption::CONFIG_AOTIRCAPTURE);
|
||||
bool AOTCapture = Value.has_value() && **Value == "1";
|
||||
if (ImGui::Checkbox("Capture", &AOTCapture)) {
|
||||
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_AOTIRCAPTURE, AOTCapture ? "1" : "0");
|
||||
ConfigChanged = true;
|
||||
}
|
||||
|
||||
Value = LoadedConfig->Get(FEXCore::Config::ConfigOption::CONFIG_AOTIRLOAD);
|
||||
bool AOTLoad = Value.has_value() && **Value == "1";
|
||||
if (ImGui::Checkbox("Load", &AOTLoad)) {
|
||||
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_AOTIRLOAD, AOTLoad ? "1" : "0");
|
||||
ConfigChanged = true;
|
||||
}
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user