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
@@ -242,10 +242,7 @@ void CPU_Init() {
// Here we have read the PARAM.SFO, let's see if we need any compatibility overrides.
// Homebrew usually has an empty discID, and even if they do have a disc id, it's not
// likely to collide with any commercial ones.
std::string discID = g_paramSFO.GetValueString("DISC_ID");
if (discID.empty()) {
discID = g_paramSFO.GenerateFakeID();
}
std::string discID = g_paramSFO.GetDiscID();
coreParameter.compat.Load(discID);
Memory::Init();