Skip to content

Commit

Permalink
GameDatabase: Remove now-unused traits
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Feb 15, 2025
1 parent 2fcf115 commit 7d80a74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 1 addition & 17 deletions src/core/game_database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace GameDatabase {
enum : u32
{
GAME_DATABASE_CACHE_SIGNATURE = 0x45434C48,
GAME_DATABASE_CACHE_VERSION = 19,
GAME_DATABASE_CACHE_VERSION = 20,
};

static const Entry* GetEntryForId(std::string_view code);
Expand Down Expand Up @@ -99,9 +99,7 @@ static constexpr const std::array<const char*, static_cast<size_t>(Trait::MaxCou
"DisablePGXPOn2DPolygons",
"ForcePGXPVertexCache",
"ForcePGXPCPUMode",
"ForceRecompilerMemoryExceptions",
"ForceRecompilerICache",
"ForceRecompilerLUTFastmem",
"ForceCDROMSubQSkew",
"IsLibCryptProtected",
}};
Expand Down Expand Up @@ -131,9 +129,7 @@ static constexpr const std::array<const char*, static_cast<size_t>(Trait::MaxCou
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Disable PGXP on 2D Polygons", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Force PGXP Vertex Cache", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Force PGXP CPU Mode", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Force Recompiler Memory Exceptions", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Force Recompiler ICache", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Force Recompiler LUT Fastmem", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Force CD-ROM SubQ Skew", "GameDatabase::Trait"),
TRANSLATE_DISAMBIG_NOOP("GameDatabase", "Is LibCrypt Protected", "GameDatabase::Trait"),
}};
Expand Down Expand Up @@ -686,24 +682,12 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes
g_settings.gpu_pgxp_disable_2d = true;
}

if (HasTrait(Trait::ForceRecompilerMemoryExceptions))
{
WARNING_LOG("Memory exceptions for recompiler forced by compatibility settings.");
settings.cpu_recompiler_memory_exceptions = true;
}

if (HasTrait(Trait::ForceRecompilerICache))
{
WARNING_LOG("ICache for recompiler forced by compatibility settings.");
settings.cpu_recompiler_icache = true;
}

if (settings.cpu_fastmem_mode == CPUFastmemMode::MMap && HasTrait(Trait::ForceRecompilerLUTFastmem))
{
WARNING_LOG("LUT fastmem for recompiler forced by compatibility settings.");
settings.cpu_fastmem_mode = CPUFastmemMode::LUT;
}

if (HasTrait(Trait::ForceCDROMSubQSkew))
{
WARNING_LOG("CD-ROM SubQ Skew forced by compatibility settings.");
Expand Down
2 changes: 0 additions & 2 deletions src/core/game_database.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ enum class Trait : u32
DisablePGXPOn2DPolygons,
ForcePGXPVertexCache,
ForcePGXPCPUMode,
ForceRecompilerMemoryExceptions,
ForceRecompilerICache,
ForceRecompilerLUTFastmem,
ForceCDROMSubQSkew,
IsLibCryptProtected,

Expand Down

0 comments on commit 7d80a74

Please sign in to comment.