mirror of
https://github.com/Gabi-Zar/Silk-Fly-Launcher.git
synced 2026-04-17 05:26:04 +02:00
fix and improve auto game path detection
This commit is contained in:
5
main.js
5
main.js
@@ -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
|
||||
});
|
||||
Reference in New Issue
Block a user