Merge pull request #3699 from Sonicadvance1/fix_3698

FEXConfig: Clear up TSO emulation string
This commit is contained in:
Ryan Houdek 2024-06-14 14:35:45 -07:00 committed by GitHub
commit 8d929027c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,14 +563,14 @@ void FillHackConfig() {
bool MemcpyTSOEnabled = MemcpyTSO.has_value() && **MemcpyTSO == "1";
bool HalfBarrierTSOEnabled = HalfBarrierTSO.has_value() && **HalfBarrierTSO == "1";
if (ImGui::Checkbox("TSO Enabled", &TSOEnabled)) {
if (ImGui::Checkbox("TSO Emulation Enabled", &TSOEnabled)) {
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_TSOENABLED, TSOEnabled ? "1" : "0");
ConfigChanged = true;
}
if (TSOEnabled) {
if (ImGui::TreeNodeEx("TSO sub-options", ImGuiTreeNodeFlags_Leaf)) {
if (ImGui::Checkbox("Vector TSO Enabled", &VectorTSOEnabled)) {
if (ImGui::TreeNodeEx("TSO Emulation sub-options", ImGuiTreeNodeFlags_Leaf)) {
if (ImGui::Checkbox("Vector TSO Emulation Enabled", &VectorTSOEnabled)) {
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_VECTORTSOENABLED, VectorTSOEnabled ? "1" : "0");
ConfigChanged = true;
}
@ -580,7 +580,7 @@ void FillHackConfig() {
ImGui::EndTooltip();
}
if (ImGui::Checkbox("Memcpy TSO Enabled", &MemcpyTSOEnabled)) {
if (ImGui::Checkbox("Memcpy TSO Emulation Enabled", &MemcpyTSOEnabled)) {
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_MEMCPYSETTSOENABLED, MemcpyTSOEnabled ? "1" : "0");
ConfigChanged = true;
}
@ -590,7 +590,7 @@ void FillHackConfig() {
ImGui::EndTooltip();
}
if (ImGui::Checkbox("Unaligned Half-Barrier TSO Enabled", &HalfBarrierTSOEnabled)) {
if (ImGui::Checkbox("Unaligned Half-Barrier TSO Emulation Enabled", &HalfBarrierTSOEnabled)) {
LoadedConfig->EraseSet(FEXCore::Config::ConfigOption::CONFIG_HALFBARRIERTSOENABLED, HalfBarrierTSOEnabled ? "1" : "0");
ConfigChanged = true;
}