launcher: pass PhotonCloudRegion to patcher template

DorkNet.ClientMod's config reads PhotonCloudRegion alongside the
AppIds, and the joining client needs the host's region to connect
to the right Photon cloud. Adds {PHOTON_REGION} to the substitution
map and threads region through ClientPatcher.ApplyAsync from both
host (AppState.PhotonRegion) and join (JoinPayload.PhotonRegion)
flows.
This commit is contained in:
Alexa
2026-05-27 01:02:25 +03:00
parent b155ae5dbe
commit a5ae5da344
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -224,7 +224,7 @@ public partial class MainWindow : Window
HostStatusText.Text = "Patching your Rec Room client…";
var patch = await _patcher.ApplyAsync(
patcherDir, _state.RecRoomPath!,
_state.PhotonAppId, _state.PhotonVoiceAppId, _hostApex);
_state.PhotonAppId, _state.PhotonVoiceAppId, _state.PhotonRegion, _hostApex);
if (!patch.Ok) { ShowError("Patcher failed: " + Truncate(patch.Log, 500)); return; }
var code = JoinCode.Encode(new JoinPayload
@@ -324,7 +324,7 @@ public partial class MainWindow : Window
JoinStatusText.Text = "Patching your Rec Room client…";
var patch = await _patcher.ApplyAsync(
patcherDir, _state.RecRoomPath!,
payload.PhotonAppId, payload.PhotonVoiceAppId, payload.Host);
payload.PhotonAppId, payload.PhotonVoiceAppId, payload.PhotonRegion, payload.Host);
if (!patch.Ok) { ShowError("Patcher failed: " + Truncate(patch.Log, 500)); return; }
JoinStatusText.Text = $"Patched and ready. Connecting to {payload.Host}. " +