feat: add torbox icon

This commit is contained in:
Zamitto
2025-02-01 17:53:08 -03:00
parent ebc70ce28f
commit bdf3a98c1a
4 changed files with 10 additions and 18 deletions

View File

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

View File

@@ -6,7 +6,6 @@ import axios from "axios";
import { exec } from "child_process";
import { ProcessPayload } from "./download/types";
import { gamesSublevel, levelKeys } from "@main/level";
import { createBackup } from "@main/events/cloud-save/upload-save-game";
const commands = {
findWineDir: `lsof -c wine 2>/dev/null | grep '/drive_c/windows$' | head -n 1 | awk '{for(i=9;i<=NF;i++) printf "%s ", $i; print ""}'`,
@@ -283,10 +282,6 @@ const onCloseGame = (game: Game) => {
gamesPlaytime.delete(levelKeys.game(game.shop, game.objectId));
if (game.remoteId) {
// create backup
// todo: check for hydra cloud?
createBackup(game.objectId, game.shop, "");
updateGamePlaytime(
game,
performance.now() - gamePlaytime.lastSyncTick,