diff --git a/src/main/main.ts b/src/main/main.ts index ec524747..a080eec2 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -18,8 +18,6 @@ import { } from "@main/services"; export const loadState = async () => { - SystemPath.checkIfPathsAreAvailable(); - const userPreferences = await db.get( levelKeys.userPreferences, { @@ -79,4 +77,6 @@ export const loadState = async () => { startMainLoop(); CommonRedistManager.downloadCommonRedist(); + + SystemPath.checkIfPathsAreAvailable(); }; diff --git a/src/main/services/library-sync/upload-games-batch.ts b/src/main/services/library-sync/upload-games-batch.ts index 95b843c9..3593ac11 100644 --- a/src/main/services/library-sync/upload-games-batch.ts +++ b/src/main/services/library-sync/upload-games-batch.ts @@ -15,7 +15,7 @@ export const uploadGamesBatch = async () => { ); }); - const gamesChunks = chunk(games, 50); + const gamesChunks = chunk(games, 30); for (const chunk of gamesChunks) { await HydraApi.post( diff --git a/src/main/services/system-path.ts b/src/main/services/system-path.ts index 17359f32..32b34e11 100644 --- a/src/main/services/system-path.ts +++ b/src/main/services/system-path.ts @@ -38,7 +38,7 @@ export class SystemPath { try { return app.getPath(pathName); } catch (error) { - logger.error(`Error getting path: ${error}`); + console.error(`Error getting path: ${error}`); return ""; } }