remove safe mode/div matching option

mismatched delete/free() in TexCache.cpp
This commit is contained in:
Flyinghead 2021-09-29 11:57:51 +02:00
parent 99bf7f77c4
commit 0d2e6f5e98
7 changed files with 3 additions and 29 deletions

View File

@ -24,7 +24,6 @@ namespace config {
Option<bool> DynarecEnabled("Dynarec.Enabled", true);
Option<bool> DynarecIdleSkip("Dynarec.idleskip", true);
Option<bool> DynarecSafeMode("Dynarec.safe-mode");
// General

View File

@ -346,7 +346,7 @@ using OptionString = Option<std::string>;
extern Option<bool> DynarecEnabled;
extern Option<bool> DynarecIdleSkip;
extern Option<bool> DynarecSafeMode;
constexpr bool DynarecSafeMode = false;
// General

View File

@ -236,7 +236,7 @@ void libCore_vramlock_Lock(u32 start_offset64, u32 end_offset64, BaseTextureCach
texture->lock_block = block;
}
else
free(block);
delete block;
}
}
@ -285,7 +285,7 @@ bool VramLockedWrite(u8* address)
static void libCore_vramlock_Unlock_block_wb(vram_block* block)
{
vramlock_list_remove(block);
free(block);
delete block;
}
#ifndef TARGET_NO_OPENMP

View File

@ -1841,8 +1841,6 @@ static void gui_display_settings()
{
ImGui::Spacing();
header("Dynarec Options");
OptionCheckbox("Safe Mode", config::DynarecSafeMode,
"Do not optimize integer division. Not recommended");
OptionCheckbox("Idle Skip", config::DynarecIdleSkip, "Skip wait loops. Recommended");
}
ImGui::Spacing();

View File

@ -425,17 +425,6 @@ struct retro_core_option_definition option_defs_us[] = {
},
"Default",
},
{
CORE_OPTION_NAME "_div_matching",
"DIV Matching",
"Optimize integer division",
{
{ "auto", "Auto" },
{ "disabled", NULL },
{ NULL, NULL },
},
"auto",
},
{
CORE_OPTION_NAME "_force_wince",
"Force Windows CE Mode",

View File

@ -371,17 +371,6 @@ struct retro_core_option_definition option_defs_tr[] = {
},
NULL,
},
{
CORE_OPTION_NAME "_div_matching",
"DIV Eşleştirme (performans, daha az doğru)",
"",
{
{ "auto", "Otomatik" },
{ "disabled", NULL },
{ NULL, NULL },
},
NULL,
},
{
CORE_OPTION_NAME "_force_wince",
"Force Windows CE Mode",

View File

@ -25,7 +25,6 @@ namespace config {
Option<bool> DynarecEnabled("", true);
Option<bool> DynarecIdleSkip("", true);
Option<bool> DynarecSafeMode(CORE_OPTION_NAME "_div_matching");
// General