Skip to content

Commit

Permalink
Merge pull request #27 from Gawdl3y/bug/15
Browse files Browse the repository at this point in the history
Check for native Linux Resonite executable before directory selection confirmation
  • Loading branch information
Gawdl3y authored Dec 13, 2023
2 parents 2e721f7 + dd1206a commit 5d07363
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/src/components/pages/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ async function findResonitePath() {
});
if (!dir) return;
// Verify the existence of the Resonite executable
exists = await fsExists(await pathJoin(dir, 'Resonite.exe'));
// Verify the existence of the Resonite executable (Windows or Linux)
exists =
(await fsExists(await pathJoin(dir, 'Resonite.exe'))) ||
(await fsExists(await pathJoin(dir, 'Resonite.x86_64')));
// If the executable doesn't exist, confirm they want to use this directory
if (!exists) {
const answer = await ask(
"Couldn't locate the Resonite executable.\nSet this as the game path anyways?",
Expand Down

0 comments on commit 5d07363

Please sign in to comment.