add auto path detection

This commit is contained in:
2026-01-16 14:49:01 +01:00
parent 57f9bfb8cb
commit 3e1b938e9a
5 changed files with 38 additions and 6 deletions

View File

@@ -11,4 +11,8 @@ contextBridge.exposeInMainWorld('save', {
ipcRenderer.invoke('save-path', path),
loadSilksongPath: () =>
ipcRenderer.invoke('load-path')
})
})
contextBridge.exposeInMainWorld('files', {
fileExists: (path) => ipcRenderer.invoke('file-exists', path)
});