mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-28 12:41:48 -03:00
Compare commits
1 Commits
debug-xsha
...
debug-no-a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43a2b6d004 |
@@ -482,15 +482,11 @@ async function launchGame(playerNameOverride = null, progressCallback, javaPathO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DualAuth Agent: Set JAVA_TOOL_OPTIONS so java picks up -javaagent: flag
|
// DualAuth Agent: DISABLED for debug - testing fastutil classloader issue
|
||||||
// This enables runtime auth patching without modifying the server JAR
|
// TODO: re-enable after testing
|
||||||
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}"`;
|
console.log('DualAuth Agent: SKIPPED (debug build - fastutil classloader test)');
|
||||||
env.JAVA_TOOL_OPTIONS = env.JAVA_TOOL_OPTIONS
|
|
||||||
? `${env.JAVA_TOOL_OPTIONS} ${agentFlag} -Xshare:off`
|
|
||||||
: `${agentFlag} -Xshare:off`;
|
|
||||||
console.log('DualAuth Agent: enabled via JAVA_TOOL_OPTIONS');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user