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:
@@ -4,15 +4,16 @@ contextBridge.exposeInMainWorld('versions', {
|
||||
node: () => process.versions.node,
|
||||
chrome: () => process.versions.chrome,
|
||||
electron: () => process.versions.electron
|
||||
})
|
||||
});
|
||||
|
||||
contextBridge.exposeInMainWorld('save', {
|
||||
saveSilksongPath: (path) =>
|
||||
ipcRenderer.invoke('save-path', path),
|
||||
loadSilksongPath: () =>
|
||||
ipcRenderer.invoke('load-path')
|
||||
})
|
||||
});
|
||||
|
||||
contextBridge.exposeInMainWorld('files', {
|
||||
fileExists: (path) => ipcRenderer.invoke('file-exists', path)
|
||||
fileExists: (path) => ipcRenderer.invoke('file-exists', path),
|
||||
userSavePath: () => ipcRenderer.invoke('get-userSavePath')
|
||||
});
|
||||
Reference in New Issue
Block a user