Skip to content

Commit

Permalink
Fix for SE 1.198.
Browse files Browse the repository at this point in the history
Fix extra argument added in InitNetworking, and check for updates if there was an initialization error, as it masks the exception and simply returns.
  • Loading branch information
Gwindalmir committed Apr 22, 2021
1 parent 2036fb1 commit df37732
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SEWorkshopTool/SpaceGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected override bool SetupBasicGameInfo()
m_steamService = MySteamGameService.Create(MySandboxGame.IsDedicated, AppId);
MyServiceManager.Instance.AddService(m_steamService);
MyServerDiscoveryAggregator serverDiscoveryAggregator = new MyServerDiscoveryAggregator();
MySteamGameService.InitNetworking(false, m_steamService, serverDiscoveryAggregator, true, true);
MySteamGameService.InitNetworking(false, m_steamService, MyPerGameSettings.BasicGameInfo.GameName, serverDiscoveryAggregator, true, true);

// If user specified --modio, set that as the "default" (added first)
var modioService = MyModIoService.Create(MyServiceManager.Instance.GetService<IMyGameService>(), ModIO_GameName, ModIO_GameID, ModIO_Key, ModIO_TestGameID, ModIO_TestKey, MyPlatformGameSettings.UGC_TEST_ENVIRONMENT, m_useModIO ? true : false);
Expand Down
2 changes: 1 addition & 1 deletion WorkshopToolCommon/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public static class Constants
{
public const string Version = "0.7.11.*";
public const string Version = "0.7.12.*";
#if SE
public const string SEWT_Prefix = "[_SEWT_]";
#else
Expand Down
1 change: 1 addition & 0 deletions WorkshopToolCommon/GameBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public virtual int InitGame(string[] args)
}
catch (Exception ex)
{
ProgramBase.CheckForUpdate();
ex.Log("ERROR: An exception occurred intializing game libraries: ");
return Cleanup(2);
}
Expand Down

0 comments on commit df37732

Please sign in to comment.