diff options
| author | JosJuice <josjuice@gmail.com> | 2017-03-09 09:47:43 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-03-09 15:34:14 +0100 |
| commit | ced1614cacab2adda6997091a8a3eebf6cf3334a (patch) | |
| tree | da55c70e4e3dcf1c2cfcebf987a66c8af804f143 /Source/Core/VideoCommon | |
| parent | 883bec873fd1e74e090331d437a84af43126bcbe (diff) | |
Unify the way of setting game ID, title ID, revision
The existing code from ConfigManager, ES and MIOS is merged
into a new set of functions called SetRunningGameMetadata.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/HiresTextures.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index e18931db9c..f503932681 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -87,7 +87,7 @@ void HiresTexture::Update() s_textureCache.clear(); } - const std::string& game_id = SConfig::GetInstance().m_strGameID; + const std::string& game_id = SConfig::GetInstance().GetGameID(); const std::string texture_directory = GetTextureDirectory(game_id); std::vector<std::string> extensions{ ".png", ".bmp", ".tga", ".dds", @@ -226,7 +226,7 @@ std::string HiresTexture::GenBaseName(const u8* texture, size_t texture_size, co u64 tlut_hash = tlut_size ? GetHashHiresTexture(tlut, (int)tlut_size, g_ActiveConfig.iSafeTextureCache_ColorSamples) : 0; - name = StringFromFormat("%s_%08x_%i", SConfig::GetInstance().m_strGameID.c_str(), + name = StringFromFormat("%s_%08x_%i", SConfig::GetInstance().GetGameID().c_str(), (u32)(tex_hash ^ tlut_hash), (u16)format); if (s_textureMap.find(name) != s_textureMap.end()) { diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 0ad86e82c5..b1dbee5407 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -437,7 +437,7 @@ TextureCacheBase::DoPartialTextureUpdates(TCacheEntryBase* entry_to_update, u8* void TextureCacheBase::DumpTexture(TCacheEntryBase* entry, std::string basename, unsigned int level) { - std::string szDir = File::GetUserPath(D_DUMPTEXTURES_IDX) + SConfig::GetInstance().m_strGameID; + std::string szDir = File::GetUserPath(D_DUMPTEXTURES_IDX) + SConfig::GetInstance().GetGameID(); // make sure that the directory exists if (!File::Exists(szDir) || !File::IsDirectory(szDir)) |
