Imported systemdata always increments playtime (#6394)

Co-authored-by: Wlowscha <54003515+Wlowscha@users.noreply.github.com>
This commit is contained in:
Xavion3 2025-08-26 07:17:16 +10:00 committed by GitHub
parent 95d6d66d62
commit e95450aa49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1515,6 +1515,7 @@ export class GameData {
switch (dataType) {
case GameDataType.SYSTEM: {
dataStr = this.convertSystemDataStr(dataStr);
dataStr = dataStr.replace(/"playTime":\d+/, `"playTime":${this.gameStats.playTime + 60}`);
const systemData = this.parseSystemData(dataStr);
valid = !!systemData.dexData && !!systemData.timestamp;
break;