feat: adding automatic backup on game close

This commit is contained in:
Chubby Granny Chaser
2024-12-26 00:41:57 +00:00
parent 91b1c349e7
commit c9ae543d3e
2 changed files with 15 additions and 2 deletions

View File

@@ -40,8 +40,7 @@ const bundleBackup = async (
return tarLocation;
};
const uploadSaveGame = async (
_event: Electron.IpcMainInvokeEvent,
export const createBackup = async (
objectId: string,
shop: GameShop,
downloadOptionTitle: string | null
@@ -108,4 +107,13 @@ const uploadSaveGame = async (
});
};
const uploadSaveGame = async (
_event: Electron.IpcMainInvokeEvent,
objectId: string,
shop: GameShop,
downloadOptionTitle: string | null
) => {
return createBackup(objectId, shop, downloadOptionTitle);
};
registerEvent("uploadSaveGame", uploadSaveGame);