diff --git a/src/main.ts b/src/main.ts index c7bd2be..bf4bd6b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -231,9 +231,10 @@ ipcMain.handle("app-version", () => app.getVersion()) function getAppConfig(): AppConfig { try { const json = fs.readFileSync(path.join(app.getAppPath(), "config.json")).toString(); + console.log(json); let appConfig = JSON.parse(json) as AppConfig; const userData = getUserData(); - appConfig = {...appConfig, ...userData.app}; + appConfig = {...appConfig, ...userData.app, games: [...appConfig.games, ...userData.app.games]}; if (appConfig.ignoreCertificateErrors) { app.commandLine.appendSwitch("ignore-certificate-errors"); }