mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 05:41:48 -03:00
v2.3.3: fix singleplayer crash when install path has spaces
JAVA_TOOL_OPTIONS -javaagent path was not quoted, causing JVM to truncate at first space. Affects all users with spaces in install path (e.g. "Hytale F2P Launcher"). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -439,7 +439,7 @@ exec "$REAL_JAVA" "\${ARGS[@]}"
|
|||||||
// This enables runtime auth patching without modifying the server JAR
|
// This enables runtime auth patching without modifying the server JAR
|
||||||
const agentJar = path.join(gameLatest, 'Server', 'dualauth-agent.jar');
|
const agentJar = path.join(gameLatest, 'Server', 'dualauth-agent.jar');
|
||||||
if (fs.existsSync(agentJar)) {
|
if (fs.existsSync(agentJar)) {
|
||||||
const agentFlag = `-javaagent:${agentJar}`;
|
const agentFlag = `-javaagent:"${agentJar}"`;
|
||||||
env.JAVA_TOOL_OPTIONS = env.JAVA_TOOL_OPTIONS
|
env.JAVA_TOOL_OPTIONS = env.JAVA_TOOL_OPTIONS
|
||||||
? `${env.JAVA_TOOL_OPTIONS} ${agentFlag}`
|
? `${env.JAVA_TOOL_OPTIONS} ${agentFlag}`
|
||||||
: agentFlag;
|
: agentFlag;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hytale-f2p-launcher",
|
"name": "hytale-f2p-launcher",
|
||||||
"version": "2.3.2",
|
"version": "2.3.3",
|
||||||
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
|
"description": "A modern, cross-platform launcher for Hytale with automatic updates and multi-client support",
|
||||||
"homepage": "https://github.com/amiayweb/Hytale-F2P",
|
"homepage": "https://github.com/amiayweb/Hytale-F2P",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user