fix and improve auto game path detection

This commit is contained in:
2026-01-16 19:05:46 +01:00
parent d75a0ecdff
commit b69a0c1b2d
3 changed files with 19 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ const Store = require('electron-store').default;
const fs = require('fs/promises');
const store = new Store();
const userSavePath = app.getPath('userData')
const createWindow = () => {
const win = new BrowserWindow({
@@ -52,4 +53,8 @@ async function fileExists(filePath) {
ipcMain.handle('file-exists', async (_, filePath) => {
return await fileExists(filePath);
});
ipcMain.handle('get-userSavePath', () => {
return userSavePath
});