Centralize logic to detect when the DPL2 decoder should be used.

This commit is contained in:
LAGonauta
2019-11-11 08:03:36 -03:00
parent 2ff646b796
commit 08787ebc4a
5 changed files with 11 additions and 4 deletions

View File

@ -1063,3 +1063,8 @@ IniFile SConfig::LoadGameIni(const std::string& id, std::optional<u16> revision)
game_ini.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + filename, true);
return game_ini;
}
bool SConfig::ShouldUseDPL2Decoder() const
{
return bDPL2Decoder && !bDSPHLE;
}