Strip spaces of the disc ID

This commit is contained in:
a-blondel committed 2026-08-28 22:36:59 +02:00
1 parent fe13074679
commit 4b324b278a
1 file changed
+2 -1
+2 -1
View File
@@ -105,7 +105,8 @@ std::vector<std::string> ParamSFOData::GetKeys() const {
}
std::string ParamSFOData::GetDiscID() {
const std::string discID = GetValueString("DISC_ID");
const std::string rawDiscID = GetValueString("DISC_ID");
const std::string discID(StripSpaces(rawDiscID));
if (discID.empty()) {
std::string fakeID = GenerateFakeID(Path());
WARN_LOG(Log::Loader, "No DiscID found - generating a fake one: '%s' (from %s)", fakeID.c_str(), PSP_CoreParameter().fileToStart.c_str());