Skip to content

Commit

Permalink
vita: Move self-modifying code checks option
Browse files Browse the repository at this point in the history
  • Loading branch information
bythos14 authored and scribam committed May 23, 2024
1 parent 7112470 commit 13e454f
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions core/ui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2833,18 +2833,23 @@ static void gui_settings_advanced()
"Over/Underclock the main SH4 CPU. Default is 200 MHz. Other values may crash, freeze or trigger unexpected nuclear reactions.",
"%d MHz");
}
ImGui::Spacing();
#ifdef __vita__
ImGui::Text("Self-Modifying Code Checks:");
ImGui::Columns(3, "DynarecSmcChecks", false);
OptionRadioButton("Off", config::DynarecSmcChecks, 0, "Disables checks for self-modifying code");
ImGui::NextColumn();
OptionRadioButton("Reduced", config::DynarecSmcChecks, 1, "Performs a simplified check for self-modifying code");
ImGui::NextColumn();
OptionRadioButton("Full", config::DynarecSmcChecks, 2, "Checks the whole code block for self-modifying code");
ImGui::Columns(1, nullptr, false);
ImGui::Spacing();
if (config::DynarecEnabled)
{
ImGui::Spacing();
header("Dynarec Options");
ImGui::Text("Self-Modifying Code Checks:");
ImGui::Columns(3, "DynarecSmcChecks", false);
OptionRadioButton("Off", config::DynarecSmcChecks, 0, "Disables checks for self-modifying code");
ImGui::NextColumn();
OptionRadioButton("Reduced", config::DynarecSmcChecks, 1, "Performs a simplified check for self-modifying code");
ImGui::NextColumn();
OptionRadioButton("Full", config::DynarecSmcChecks, 2, "Checks the whole code block for self-modifying code");
ImGui::Columns(1, nullptr, false);
ImGui::Spacing();
}
#endif
ImGui::Spacing();
header("Other");
{
OptionCheckbox("HLE BIOS", config::UseReios, "Force high-level BIOS emulation");
Expand Down

0 comments on commit 13e454f

Please sign in to comment.