From 9f672703feefc56996e3a796b9e674927a4969a9 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Tue, 19 Apr 2022 20:02:04 -0700 Subject: [PATCH] launch private server through button --- .tmp/auth_info.json | 2 +- resources/index.html | 2 +- resources/js/index.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.tmp/auth_info.json b/.tmp/auth_info.json index 9bc13bd..545e6a1 100644 --- a/.tmp/auth_info.json +++ b/.tmp/auth_info.json @@ -1 +1 @@ -{"accessToken":"CATm56pIp1rqIMWoVVw5y3RwLFjY48mCo01m0eRjbbUsOcF8","port":54022} \ No newline at end of file +{"accessToken":"koqlczs0mi0QuA4uZtkaZmPT9H3xQO-MaifZIUVW_kkp8HBD","port":62332} \ No newline at end of file diff --git a/resources/index.html b/resources/index.html index bd25b19..834e863 100644 --- a/resources/index.html +++ b/resources/index.html @@ -11,7 +11,7 @@
- +
diff --git a/resources/js/index.js b/resources/js/index.js index 9e80959..c30ba50 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -75,9 +75,11 @@ async function launchOfficial() { } async function launchPrivate() { - const ip = '' + const ip = 'localhost' const port = '' const config = await getCfg() - + + // Pass IP and game folder to the private server launcher + Neutralino.os.execCommand(`${NL_CWD}/private_server_launch.cmd ${ip} "${config.genshinImpactFolder}"`).catch(e => console.log(e)) } \ No newline at end of file