Merge pull request #22157 from a-blondel/feature/strip-discID

Strip spaces of the disc ID
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-08-28 23:00:31 +02:00
commit e46a853bc7
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());