mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-28 03:21:47 -03:00
v2.4.5: Add multi-instance setting for mod developers
Allow running multiple game clients simultaneously via a new "Allow multiple game instances" toggle in Settings. When enabled, skips the Electron single-instance lock and the pre-launch process kill, so existing game instances stay alive. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -708,6 +708,15 @@ function loadLauncherHardwareAcceleration() {
|
||||
return config.launcherHardwareAcceleration !== undefined ? config.launcherHardwareAcceleration : true;
|
||||
}
|
||||
|
||||
function saveAllowMultiInstance(enabled) {
|
||||
saveConfig({ allowMultiInstance: !!enabled });
|
||||
}
|
||||
|
||||
function loadAllowMultiInstance() {
|
||||
const config = loadConfig();
|
||||
return config.allowMultiInstance !== undefined ? config.allowMultiInstance : false;
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// MODS MANAGEMENT
|
||||
// =============================================================================
|
||||
@@ -1105,6 +1114,8 @@ module.exports = {
|
||||
loadCloseLauncherOnStart,
|
||||
saveLauncherHardwareAcceleration,
|
||||
loadLauncherHardwareAcceleration,
|
||||
saveAllowMultiInstance,
|
||||
loadAllowMultiInstance,
|
||||
|
||||
// Mods
|
||||
saveModsToConfig,
|
||||
|
||||
Reference in New Issue
Block a user