boop
This commit is contained in:
parent
e539d88514
commit
c9ddbfbb3b
1 changed files with 6 additions and 1 deletions
|
@ -111,7 +111,12 @@ ipcMain.handle(IpcEvents.SELECT_VENCORD_DIR, async () => {
|
||||||
if (!res.filePaths.length) return "cancelled";
|
if (!res.filePaths.length) return "cancelled";
|
||||||
|
|
||||||
const dir = res.filePaths[0];
|
const dir = res.filePaths[0];
|
||||||
for (const file of ["vencordDesktopMain.js", "preload.js", "vencordDesktopRenderer.js", "vencordDesktopRenderer.css"]) {
|
for (const file of [
|
||||||
|
"vencordDesktopMain.js",
|
||||||
|
"preload.js",
|
||||||
|
"vencordDesktopRenderer.js",
|
||||||
|
"vencordDesktopRenderer.css"
|
||||||
|
]) {
|
||||||
if (!existsSync(join(dir, file))) return "invalid";
|
if (!existsSync(join(dir, file))) return "invalid";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue