Core: Refactor repeating disc id homebrew code.

This commit is contained in:
Unknown W. Brackets committed 2017-06-03 15:29:08 -07:00
1 parent dca75437c3
commit 41b485aa0a
8 files changed
+15 -32

No files matched your search

+1 -4
View File
@@ -47,10 +47,7 @@ void TextureReplacer::Init() {
}
void TextureReplacer::NotifyConfigChanged() {
gameID_ = g_paramSFO.GetValueString("DISC_ID");
if (gameID_.empty()) {
gameID_ = g_paramSFO.GenerateFakeID();
}
gameID_ = g_paramSFO.GetDiscID();
enabled_ = g_Config.bReplaceTextures || g_Config.bSaveNewTextures;
if (enabled_) {