Don't update user info on save for optimization

pull/606/head
Flashfyre 2024-05-07 13:36:52 -04:00
parent 4fcea107ab
commit 72b4552b01
1 changed files with 40 additions and 46 deletions

View File

@ -250,11 +250,6 @@ export class GameData {
public saveSystem(): Promise<boolean> { public saveSystem(): Promise<boolean> {
return new Promise<boolean>(resolve => { return new Promise<boolean>(resolve => {
this.scene.ui.savingIcon.show(); this.scene.ui.savingIcon.show();
updateUserInfo().then(response => {
if (!response[0]) {
this.scene.ui.savingIcon.hide();
return resolve(false);
}
const data: SystemSaveData = { const data: SystemSaveData = {
trainerId: this.trainerId, trainerId: this.trainerId,
secretId: this.secretId, secretId: this.secretId,
@ -302,7 +297,6 @@ export class GameData {
resolve(true); resolve(true);
} }
}); });
});
} }
public loadSystem(): Promise<boolean> { public loadSystem(): Promise<boolean> {