feat: delay SystemPath validations

This commit is contained in:
Zamitto
2025-05-14 08:42:50 -03:00
parent 00065ab0c9
commit ae067efd5e
3 changed files with 4 additions and 4 deletions

View File

@@ -18,8 +18,6 @@ import {
} from "@main/services";
export const loadState = async () => {
SystemPath.checkIfPathsAreAvailable();
const userPreferences = await db.get<string, UserPreferences | null>(
levelKeys.userPreferences,
{
@@ -77,4 +75,6 @@ export const loadState = async () => {
startMainLoop();
CommonRedistManager.downloadCommonRedist();
SystemPath.checkIfPathsAreAvailable();
};

View File

@@ -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(

View File

@@ -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 "";
}
}