mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-16 19:05:39 +00:00
GameDatabase: Use TitleCase for traits
This commit is contained in:
parent
05cbf86be0
commit
f6dc80cefa
File diff suppressed because it is too large
Load diff
|
@ -61,27 +61,27 @@ static constexpr const std::array<const char*, static_cast<size_t>(Compatibility
|
||||||
TRANSLATE_NOOP("GameListCompatibilityRating", "No Issues")}};
|
TRANSLATE_NOOP("GameListCompatibilityRating", "No Issues")}};
|
||||||
|
|
||||||
static constexpr const std::array<const char*, static_cast<u32>(GameDatabase::Trait::Count)> s_trait_names = {{
|
static constexpr const std::array<const char*, static_cast<u32>(GameDatabase::Trait::Count)> s_trait_names = {{
|
||||||
"forceInterpreter",
|
"ForceInterpreter",
|
||||||
"forceSoftwareRenderer",
|
"ForceSoftwareRenderer",
|
||||||
"forceSoftwareRendererForReadbacks",
|
"ForceSoftwareRendererForReadbacks",
|
||||||
"forceInterlacing",
|
"ForceInterlacing",
|
||||||
"disableTrueColor",
|
"DisableTrueColor",
|
||||||
"disableUpscaling",
|
"DisableUpscaling",
|
||||||
"disableTextureFiltering",
|
"DisableTextureFiltering",
|
||||||
"disableScaledDithering",
|
"DisableScaledDithering",
|
||||||
"disableForceNTSCTimings",
|
"DisableForceNTSCTimings",
|
||||||
"disableWidescreen",
|
"DisableWidescreen",
|
||||||
"disablePGXP",
|
"DisablePGXP",
|
||||||
"disablePGXPCulling",
|
"DisablePGXPCulling",
|
||||||
"disablePGXPTextureCorrection",
|
"DisablePGXPTextureCorrection",
|
||||||
"disablePGXPColorCorrection",
|
"DisablePGXPColorCorrection",
|
||||||
"disablePGXPDepthBuffer",
|
"DisablePGXPDepthBuffer",
|
||||||
"forcePGXPVertexCache",
|
"ForcePGXPVertexCache",
|
||||||
"forcePGXPCPUMode",
|
"ForcePGXPCPUMode",
|
||||||
"forceRecompilerMemoryExceptions",
|
"ForceRecompilerMemoryExceptions",
|
||||||
"forceRecompilerICache",
|
"ForceRecompilerICache",
|
||||||
"forceRecompilerLUTFastmem",
|
"ForceRecompilerLUTFastmem",
|
||||||
"isLibCryptProtected",
|
"IsLibCryptProtected",
|
||||||
}};
|
}};
|
||||||
|
|
||||||
static constexpr const char* GAMEDB_YAML_FILENAME = "gamedb.yaml";
|
static constexpr const char* GAMEDB_YAML_FILENAME = "gamedb.yaml";
|
||||||
|
@ -993,6 +993,19 @@ bool GameDatabase::ParseYamlEntry(Entry* entry, const ryml::ConstNodeRef& value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (const ryml::ConstNodeRef& libcrypt = value.find_child(to_csubstr("libcrypt")); libcrypt.valid())
|
||||||
|
{
|
||||||
|
if (const std::optional libcrypt_val = StringUtil::FromChars<bool>(to_stringview(libcrypt.val()));
|
||||||
|
libcrypt_val.has_value())
|
||||||
|
{
|
||||||
|
entry->traits[static_cast<size_t>(Trait::IsLibCryptProtected)] = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Log_WarningFmt("Invalid libcrypt value in {}", entry->serial);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (const ryml::ConstNodeRef settings = value.find_child(to_csubstr("settings"));
|
if (const ryml::ConstNodeRef settings = value.find_child(to_csubstr("settings"));
|
||||||
settings.valid() && settings.has_children())
|
settings.valid() && settings.has_children())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue