mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Strip spaces of the disc ID
This commit is contained in:
1 parent
fe13074679
commit
4b324b278a
1 file changed
+2
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user