Skip to content

Commit

Permalink
temp commit for bettersaves audio loading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattieFM committed Feb 1, 2024
1 parent c4c58b6 commit e2a9cd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/mods/betterSaves.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ MATTIE.betterSaves.config.numberOfSaves;
};

MATTIE.saves.continueFromSuspendedRun = function () {
if(!Game_System._bgmOnSave)
Game_System._bgmOnSave = AudioManager.saveBgm();
MATTIE.menus.loadGameAndGoTo(MATTIE.saves.suspendedRunId);
MATTIE.saves.deleteSuspendedRun();
};
Expand All @@ -81,6 +83,7 @@ MATTIE.betterSaves.config.numberOfSaves;
};

Input.addKeyBind('', () => {
Game_System.prototype.onBeforeSave();
MATTIE.saves.suspendRun();
}, 'SuspendRun', 1);

Expand Down

0 comments on commit e2a9cd8

Please sign in to comment.