From 141f8dbeb2bae676a774f1eedac5ef78f8672c3e Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Fri, 29 Apr 2022 22:45:14 -0700 Subject: [PATCH] registry login translations --- languages/en.json | 2 ++ resources/index.html | 2 +- resources/js/translation.js | 2 ++ scripts/private_server_launch.cmd | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/languages/en.json b/languages/en.json index a7ecafe..21da443 100644 --- a/languages/en.json +++ b/languages/en.json @@ -28,6 +28,8 @@ "enableServerLauncherSubtitle": "Enable to server launcher tile for launching a local Grasscutter instance.", "httpsOption": "Use HTTPS", "httpsSubtitle": "Choose between using HTTPS or HTTP.", + "registryOption": "Login via Windows Registry", + "registrySubtitle": "Instead of copying login tokens when authenticating, you can login via a modification to the registry. Clears the registry data on game close.", "introSen1": "Looks like this is your first time opening GrassClipper!", "introSen2": "First of all, welcome, happy to see you here! :)", diff --git a/resources/index.html b/resources/index.html index 08a74a7..f7900c8 100644 --- a/resources/index.html +++ b/resources/index.html @@ -184,7 +184,7 @@
- Login with Registry + Login via Windows Registry
diff --git a/resources/js/translation.js b/resources/js/translation.js index 986b03c..ceec561 100644 --- a/resources/js/translation.js +++ b/resources/js/translation.js @@ -58,6 +58,8 @@ async function doTranslation() { set('serverSubtitle', 'enableServerLauncherSubtitle') set('httpsTitle', 'httpsOption') set('httpsSubtitle', 'httpsSubtitle') + set('registryLoginTitle', 'registryOption') + set('registrySubtitle', 'registrySubtitle') // Intro popup const popup = document.getElementById('firstTimeNotice') diff --git a/scripts/private_server_launch.cmd b/scripts/private_server_launch.cmd index 0cc7b12..54a1f7b 100644 --- a/scripts/private_server_launch.cmd +++ b/scripts/private_server_launch.cmd @@ -84,7 +84,7 @@ taskkill /f /im mitmdump.exe echo Done, see you next time :: Just in case the user has corutils installed, use this hacky timeout instead of the timeout command -ping 127.0.0.1 -n 2 > nul +ping 127.0.0.1 -n 1 > nul :: Attempt to kill either taskkill /f /fi "WINDOWTITLE eq Administrator: PS Launcher Script"