GameSettings: Rename 'enable' options to 'force'

As per discussion on Discord.
This commit is contained in:
Connor McLaughlin 2020-08-29 21:53:52 +10:00
parent ca723d699b
commit 3aecf6be27
3 changed files with 30 additions and 30 deletions

View File

@ -3,12 +3,12 @@
# Croc - Legend of the Gobbos (USA) (SLUS-00530) # Croc - Legend of the Gobbos (USA) (SLUS-00530)
[SLUS-00530] [SLUS-00530]
EnablePGXPCPUMode = true ForcePGXPCPUMode = true
# Croc 2 (USA) (SLUS-00634) # Croc 2 (USA) (SLUS-00634)
[SLUS-00634] [SLUS-00634]
EnablePGXPCPUMode = true ForcePGXPCPUMode = true
# Doom (USA) (Rev 1) (SLUS-00077) # Doom (USA) (Rev 1) (SLUS-00077)
@ -18,54 +18,54 @@ DisableUpscaling = true
# Pop'n Music 6 (Japan) (SLPM-87089) # Pop'n Music 6 (Japan) (SLPM-87089)
[SLPM-87089] [SLPM-87089]
EnableInterlacing = true ForceInterlacing = true
# Mr. Driller G (Japan) (SLPS-03336) # Mr. Driller G (Japan) (SLPS-03336)
[SLPS-03336] [SLPS-03336]
EnableInterlacing = true ForceInterlacing = true
# Pro Pinball - Big Race USA (USA) (SLUS-01260) # Pro Pinball - Big Race USA (USA) (SLUS-01260)
[SLUS-01260] [SLUS-01260]
ForceSoftwareRenderer = true ForceSoftwareRenderer = true
EnableInterlacing = true ForceInterlacing = true
# Pro Pinball - Fantastic Journey (USA) (SLUS-01261) # Pro Pinball - Fantastic Journey (USA) (SLUS-01261)
[SLUS-01261] [SLUS-01261]
ForceSoftwareRenderer = true ForceSoftwareRenderer = true
EnableInterlacing = true ForceInterlacing = true
# True Pinball (USA) (SLUS-00337) # True Pinball (USA) (SLUS-00337)
[SLUS-00337] [SLUS-00337]
EnableInterlacing = true ForceInterlacing = true
# Dead or Alive (USA) (SLUS-00606) # Dead or Alive (USA) (SLUS-00606)
[SLUS-00606] [SLUS-00606]
EnableInterlacing = true ForceInterlacing = true
# Shinobi no Sato no Jintori Gassen (Japan) (SLPS-03553) # Shinobi no Sato no Jintori Gassen (Japan) (SLPS-03553)
[SLPS-03553] [SLPS-03553]
EnableInterlacing = true ForceInterlacing = true
# Time Bokan Series: Bokan desu yo (SLPS-01211) # Time Bokan Series: Bokan desu yo (SLPS-01211)
[SLPS-01211] [SLPS-01211]
EnableInterlacing = true ForceInterlacing = true
# Rat Attack! (USA) (SLUS-00656) # Rat Attack! (USA) (SLUS-00656)
[SLUS-00656] [SLUS-00656]
EnableInterlacing = true ForceInterlacing = true
# Arcade Party Pak (USA) (SLUS-00952) # Arcade Party Pak (USA) (SLUS-00952)
[SLUS-00952] [SLUS-00952]
EnableInterlacing = true ForceInterlacing = true
# SLUS-01222 (Colin McRae Rally 2.0 (USA) (En,Fr,Es)) # SLUS-01222 (Colin McRae Rally 2.0 (USA) (En,Fr,Es))

View File

@ -21,17 +21,17 @@ namespace GameSettings {
std::array<std::pair<const char*, const char*>, static_cast<u32>(Trait::Count)> s_trait_names = {{ std::array<std::pair<const char*, const char*>, static_cast<u32>(Trait::Count)> s_trait_names = {{
{"ForceInterpreter", TRANSLATABLE("GameSettingsTrait", "Force Interpreter")}, {"ForceInterpreter", TRANSLATABLE("GameSettingsTrait", "Force Interpreter")},
{"ForceSoftwareRenderer", TRANSLATABLE("GameSettingsTrait", "Force Software Renderer")}, {"ForceSoftwareRenderer", TRANSLATABLE("GameSettingsTrait", "Force Software Renderer")},
{"EnableInterlacing", TRANSLATABLE("GameSettingsTrait", "Enable Interlacing")}, {"ForceInterlacing", TRANSLATABLE("GameSettingsTrait", "Force Interlacing")},
{"DisableTrueColor", TRANSLATABLE("GameSettingsTrait", "Disable True Color")}, {"DisableTrueColor", TRANSLATABLE("GameSettingsTrait", "Disable True Color")},
{"DisableUpscaling", TRANSLATABLE("GameSettingsTrait", "Disable Upscaling")}, {"DisableUpscaling", TRANSLATABLE("GameSettingsTrait", "Disable Upscaling")},
{"DisableScaledDithering", TRANSLATABLE("GameSettingsTrait", "Disable Scaled Dithering")}, {"DisableScaledDithering", TRANSLATABLE("GameSettingsTrait", "Disable Scaled Dithering")},
{"DisableWidescreen", TRANSLATABLE("GameSettingsTrait", "Disable Widescreen")}, {"DisableWidescreen", TRANSLATABLE("GameSettingsTrait", "Disable Widescreen")},
{"DisablePGXP", TRANSLATABLE("GameSettingsTrait", "Disable PGXP")}, {"DisablePGXP", TRANSLATABLE("GameSettingsTrait", "Disable PGXP")},
{"DisablePGXPCulling", TRANSLATABLE("GameSettingsTrait", "Disable PGXP Culling")}, {"DisablePGXPCulling", TRANSLATABLE("GameSettingsTrait", "Disable PGXP Culling")},
{"EnablePGXPVertexCache", TRANSLATABLE("GameSettingsTrait", "Enable PGXP Vertex Cache")}, {"ForcePGXPVertexCache", TRANSLATABLE("GameSettingsTrait", "Force PGXP Vertex Cache")},
{"EnablePGXPCPUMode", TRANSLATABLE("GameSettingsTrait", "Enable PGXP CPU Mode")}, {"ForcePGXPCPUMode", TRANSLATABLE("GameSettingsTrait", "Force PGXP CPU Mode")},
{"ForceDigitalController", TRANSLATABLE("GameSettingsTrait", "Force Digital Controller")}, {"ForceDigitalController", TRANSLATABLE("GameSettingsTrait", "Force Digital Controller")},
{"EnableRecompilerMemoryExceptions", TRANSLATABLE("GameSettingsTrait", "Enable Recompiler Memory Exceptions")}, {"ForceRecompilerMemoryExceptions", TRANSLATABLE("GameSettingsTrait", "Force Recompiler Memory Exceptions")},
}}; }};
const char* GetTraitName(Trait trait) const char* GetTraitName(Trait trait)
@ -305,7 +305,7 @@ void Entry::ApplySettings(bool display_osd_messages) const
if (HasTrait(Trait::ForceInterpreter)) if (HasTrait(Trait::ForceInterpreter))
{ {
if (display_osd_messages && g_settings.cpu_execution_mode != CPUExecutionMode::Interpreter) if (display_osd_messages && g_settings.cpu_execution_mode != CPUExecutionMode::Interpreter)
g_host_interface->AddOSDMessage("CPU execution mode forced to interpreter by game settings.", osd_duration); g_host_interface->AddOSDMessage("CPU interpreter forced by game settings.", osd_duration);
g_settings.cpu_execution_mode = CPUExecutionMode::Interpreter; g_settings.cpu_execution_mode = CPUExecutionMode::Interpreter;
} }
@ -313,15 +313,15 @@ void Entry::ApplySettings(bool display_osd_messages) const
if (HasTrait(Trait::ForceSoftwareRenderer)) if (HasTrait(Trait::ForceSoftwareRenderer))
{ {
if (display_osd_messages && g_settings.gpu_renderer != GPURenderer::Software) if (display_osd_messages && g_settings.gpu_renderer != GPURenderer::Software)
g_host_interface->AddOSDMessage("GPU renderer forced to software by game settings.", osd_duration); g_host_interface->AddOSDMessage("Software renderer forced by game settings.", osd_duration);
g_settings.gpu_renderer = GPURenderer::Software; g_settings.gpu_renderer = GPURenderer::Software;
} }
if (HasTrait(Trait::EnableInterlacing)) if (HasTrait(Trait::ForceInterlacing))
{ {
if (display_osd_messages && g_settings.gpu_disable_interlacing) if (display_osd_messages && g_settings.gpu_disable_interlacing)
g_host_interface->AddOSDMessage("Interlacing enabled by game settings.", osd_duration); g_host_interface->AddOSDMessage("Interlacing forced by game settings.", osd_duration);
g_settings.gpu_disable_interlacing = false; g_settings.gpu_disable_interlacing = false;
} }
@ -378,18 +378,18 @@ void Entry::ApplySettings(bool display_osd_messages) const
g_settings.gpu_pgxp_culling = false; g_settings.gpu_pgxp_culling = false;
} }
if (HasTrait(Trait::EnablePGXPVertexCache)) if (HasTrait(Trait::ForcePGXPVertexCache))
{ {
if (display_osd_messages && g_settings.gpu_pgxp_enable && !g_settings.gpu_pgxp_vertex_cache) if (display_osd_messages && g_settings.gpu_pgxp_enable && !g_settings.gpu_pgxp_vertex_cache)
g_host_interface->AddOSDMessage("PGXP vertex cache enabled by game settings.", osd_duration); g_host_interface->AddOSDMessage("PGXP vertex cache forced by game settings.", osd_duration);
g_settings.gpu_pgxp_vertex_cache = true; g_settings.gpu_pgxp_vertex_cache = true;
} }
if (HasTrait(Trait::EnablePGXPCPUMode)) if (HasTrait(Trait::ForcePGXPCPUMode))
{ {
if (display_osd_messages && g_settings.gpu_pgxp_enable && !g_settings.gpu_pgxp_cpu) if (display_osd_messages && g_settings.gpu_pgxp_enable && !g_settings.gpu_pgxp_cpu)
g_host_interface->AddOSDMessage("PGXP CPU mode enabled by game settings.", osd_duration); g_host_interface->AddOSDMessage("PGXP CPU mode forced by game settings.", osd_duration);
g_settings.gpu_pgxp_cpu = true; g_settings.gpu_pgxp_cpu = true;
} }
@ -412,12 +412,12 @@ void Entry::ApplySettings(bool display_osd_messages) const
} }
} }
if (HasTrait(Trait::EnableRecompilerMemoryExceptions)) if (HasTrait(Trait::ForceRecompilerMemoryExceptions))
{ {
if (display_osd_messages && g_settings.cpu_execution_mode == CPUExecutionMode::Recompiler && if (display_osd_messages && g_settings.cpu_execution_mode == CPUExecutionMode::Recompiler &&
!g_settings.cpu_recompiler_memory_exceptions) !g_settings.cpu_recompiler_memory_exceptions)
{ {
g_host_interface->AddOSDMessage("Recompiler memory exceptions enabled by game settings.", osd_duration); g_host_interface->AddOSDMessage("Recompiler memory exceptions forced by game settings.", osd_duration);
} }
g_settings.cpu_recompiler_memory_exceptions = true; g_settings.cpu_recompiler_memory_exceptions = true;

View File

@ -12,17 +12,17 @@ enum class Trait : u32
{ {
ForceInterpreter, ForceInterpreter,
ForceSoftwareRenderer, ForceSoftwareRenderer,
EnableInterlacing, ForceInterlacing,
DisableTrueColor, DisableTrueColor,
DisableUpscaling, DisableUpscaling,
DisableScaledDithering, DisableScaledDithering,
DisableWidescreen, DisableWidescreen,
DisablePGXP, DisablePGXP,
DisablePGXPCulling, DisablePGXPCulling,
EnablePGXPVertexCache, ForcePGXPVertexCache,
EnablePGXPCPUMode, ForcePGXPCPUMode,
ForceDigitalController, ForceDigitalController,
EnableRecompilerMemoryExceptions, ForceRecompilerMemoryExceptions,
Count Count
}; };