mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
feat: adding file parser
This commit is contained in:
parent
fbae552b1b
commit
ded56c518d
@ -9,7 +9,7 @@ import YAML from "yaml";
|
|||||||
import ludusaviWorkerPath from "../workers/ludusavi.worker?modulePath";
|
import ludusaviWorkerPath from "../workers/ludusavi.worker?modulePath";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
let a = null;
|
let a: Record<string, string> | null = null;
|
||||||
|
|
||||||
export class Ludusavi {
|
export class Ludusavi {
|
||||||
private static ludusaviPath = path.join(app.getPath("appData"), "ludusavi");
|
private static ludusaviPath = path.join(app.getPath("appData"), "ludusavi");
|
||||||
@ -65,7 +65,7 @@ export class Ludusavi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static async getBackupPreview(
|
static async getBackupPreview(
|
||||||
shop: GameShop,
|
_shop: GameShop,
|
||||||
objectId: string,
|
objectId: string,
|
||||||
backupPath: string
|
backupPath: string
|
||||||
): Promise<LudusaviBackup | null> {
|
): Promise<LudusaviBackup | null> {
|
||||||
@ -80,7 +80,7 @@ export class Ludusavi {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const game = a[objectId];
|
const game = a?.[objectId];
|
||||||
|
|
||||||
// if (!games.length) return null;
|
// if (!games.length) return null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user