reload mods on change
This commit is contained in:
@@ -227,6 +227,8 @@ namespace OpenRA
|
|||||||
|
|
||||||
public static void SyncLobbyInfo(string data)
|
public static void SyncLobbyInfo(string data)
|
||||||
{
|
{
|
||||||
|
var oldLobbyInfo = LobbyInfo;
|
||||||
|
|
||||||
var session = new Session();
|
var session = new Session();
|
||||||
session.GlobalSettings.Mods = Settings.InitialMods;
|
session.GlobalSettings.Mods = Settings.InitialMods;
|
||||||
|
|
||||||
@@ -267,6 +269,13 @@ namespace OpenRA
|
|||||||
if (PackageDownloader.SetPackageList(LobbyInfo.GlobalSettings.Packages)
|
if (PackageDownloader.SetPackageList(LobbyInfo.GlobalSettings.Packages)
|
||||||
|| mapName != LobbyInfo.GlobalSettings.Map)
|
|| mapName != LobbyInfo.GlobalSettings.Map)
|
||||||
changePending = true;
|
changePending = true;
|
||||||
|
|
||||||
|
if (string.Join(",", oldLobbyInfo.GlobalSettings.Mods)
|
||||||
|
!= string.Join(",", LobbyInfo.GlobalSettings.Mods))
|
||||||
|
{
|
||||||
|
chat.AddLine(Color.White, "Debug", "Mods list changed, reloading.");
|
||||||
|
changePending = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void IssueOrder(Order o) { orderManager.IssueOrder(o); } /* avoid exposing the OM to mod code */
|
public static void IssueOrder(Order o) { orderManager.IssueOrder(o); } /* avoid exposing the OM to mod code */
|
||||||
|
|||||||
Reference in New Issue
Block a user