Skip to content

Commit

Permalink
Add a friendly notice for migrating TSCv6 (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
SadPencil authored Nov 5, 2024
1 parent b7f6575 commit 1810e44
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion DXMainClient/DXGUI/Multiplayer/GameLobby/GameLobbyBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,14 @@ public override void Initialize()

base.Initialize();

PlayerOptionsPanel = FindChild<XNAPanel>(nameof(PlayerOptionsPanel));
try
{
PlayerOptionsPanel = FindChild<XNAPanel>(nameof(PlayerOptionsPanel));
}
catch (Exception ex)
{
throw new Exception($"It seems the modders have not migrated the 'Tiberian Sun Client v6 Changes'. Please refer to https://github.com/CnCNet/xna-cncnet-client/blob/122b2de962afc404e203290d0618363d83c4264a/Docs/Migration-INI.md for more details. {ex.Message}");
}

btnLeaveGame = FindChild<XNAClientButton>(nameof(btnLeaveGame));
btnLeaveGame.LeftClick += BtnLeaveGame_LeftClick;
Expand Down

0 comments on commit 1810e44

Please sign in to comment.