From 3e4953478a648090861bcdd880e99abde97bdb33 Mon Sep 17 00:00:00 2001 From: SushiDesigner <54828677+SushiDesigner@users.noreply.github.com> Date: Sun, 28 Aug 2022 11:24:45 -0600 Subject: [PATCH] sandboxie --- src/App.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index 9be3da9..be08b1a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -42,6 +42,11 @@ //updated //launch // rust doesn't like \ for some reason so quick hack + const sandboxieexists = await invoke('exists', { path: "C:/Program Files/Sandboxie-Plus/Start.exe"}); + if (sandboxieexists === true){ + await invoke('exec', {exe:"C:/\"Program Files\"/Sandboxie-Plus/Start.exe "+dataDirPath.replace(/\\/g, '/')+"MeteoritePlayer/RobloxPlayerBetaRaw.exe -a \"mete0r.xyz/login/Negotiate\" -j \"http://mete0r.xyz/game/placelauncher?name="+url_to_open[0]+"&auth="+url_to_open[1]+"\" -t \"ticket\""}); + exit(1); + } await invoke('exec', {exe:dataDirPath.replace(/\\/g, '/')+"MeteoritePlayer/RobloxPlayerBetaRaw.exe -a \"mete0r.xyz/login/Negotiate\" -j \"http://mete0r.xyz/game/placelauncher?name="+url_to_open[0]+"&auth="+url_to_open[1]+"\" -t \"ticket\""}); exit(1); } @@ -59,6 +64,11 @@ if (releaseexists === true){ await invoke('removefile', {file:dataDirPath+'release.zip'}); } + const sandboxieexists = await invoke('exists', { path: "C:/Program Files/Sandboxie-Plus/Start.exe"}); + if (sandboxieexists === true){ + await invoke('exec', {exe:"C:/\"Program Files\"/Sandboxie-Plus/Start.exe "+dataDirPath.replace(/\\/g, '/')+"MeteoritePlayer/RobloxPlayerBetaRaw.exe -a \"mete0r.xyz/login/Negotiate\" -j \"http://mete0r.xyz/game/placelauncher?name="+url_to_open[0]+"&auth="+url_to_open[1]+"\" -t \"ticket\""}); + exit(1); + } await invoke('exec', {exe:dataDirPath.replace(/\\/g, '/')+"MeteoritePlayer/RobloxPlayerBetaRaw.exe -a \"mete0r.xyz/login/Negotiate\" -j \"http://mete0r.xyz/game/placelauncher?name="+url_to_open[0]+"&auth="+url_to_open[1]+"\" -t \"ticket\""}); exit(1); }