fix: Fixed tests
feat: Added RClone integration feat: Implemented plugin settings feat: Updated minimal store version test: Fixed tests feat: Moved store and igdb and es-de to their own plugins
This commit is contained in:
parent
444d8c4c27
commit
c09fbd3dc8
115 changed files with 4139 additions and 1502 deletions
|
|
@ -70,13 +70,13 @@ export default new Elysia({ prefix: '/emulatorjs' })
|
|||
const localGame = await getLocalGame(source, id);
|
||||
if (!localGame) return status("Not Found");
|
||||
|
||||
const changedSaveFiles: SaveFileChange[] = [];
|
||||
const changedSaveFiles: Record<string, SaveFileChange> = {};
|
||||
if (save)
|
||||
{
|
||||
const savesPath = path.join(config.get('downloadPath'), 'saves', "EMULATORJS");
|
||||
const saveFile = path.join(savesPath, save.name);
|
||||
await Bun.write(saveFile, save);
|
||||
changedSaveFiles.push({ subPath: save.name, cwd: savesPath });
|
||||
changedSaveFiles.gameflow = { subPath: save.name, cwd: savesPath, shared: false };
|
||||
events.emit('notification', { message: "Save Backed Up", type: "success", icon: "save" });
|
||||
}
|
||||
await updateLocalLastPlayed(localGame.id);
|
||||
|
|
@ -85,7 +85,7 @@ export default new Elysia({ prefix: '/emulatorjs' })
|
|||
id,
|
||||
saveFolderPath: path.join(config.get('downloadPath'), "saves", "EMULATORJS"),
|
||||
gameInfo: { platformSlug: localGame?.platform.slug },
|
||||
changedSaveFiles: changedSaveFiles,
|
||||
changedSaveFiles: [],
|
||||
validChangedSaveFiles: changedSaveFiles,
|
||||
command: {
|
||||
id: "EMULATORJS",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue