protected override bool SetupBasicGameInfo() { SpaceEngineersGame.SetupBasicGameInfo(); m_startup = new MyCommonProgramStartup(m_args); var appDataPath = m_startup.GetAppDataPath(); VRage.Platform.Windows.MyVRageWindows.Init(MyPerGameSettings.BasicGameInfo.ApplicationName, MySandboxGame.Log, appDataPath, false); MyInitializer.InvokeBeforeRun(AppId, MyPerGameSettings.BasicGameInfo.ApplicationName + "ModTool", MyVRage.Platform.System.GetAppDataPath()); MyRenderProxy.Initialize((IMyRender) new MyNullRender()); MyInitializer.InitCheckSum(); if (m_startup.PerformColdStart()) { return(false); } if (!m_startup.Check64Bit()) { return(false); } m_steamService = VRage.Steam.MySteamGameService.Create(MySandboxGame.IsDedicated, AppId); MyServiceManager.Instance.AddService(m_steamService); MyServiceManager.Instance.AddService(VRage.Steam.MySteamUgcService.Create(AppId, m_steamService)); if (m_useModIO) { MyLog.Default.WriteLineAndConsole("Using mod.io service, instead of Steam."); MyServiceManager.Instance.AddService(VRage.Mod.Io.MyModIoService.Create(MySandboxGame.IsDedicated, MyServiceManager.Instance.GetService <IMyGameService>(), ModIO_GameName, ModIO_GameID, ModIO_Key, ModIO_TestGameID, ModIO_TestKey, false)); } SpaceEngineersGame.SetupPerGameSettings(); ManuallyAddDLCs(); return(true); }
protected override bool SetupBasicGameInfo() { SpaceEngineersGame.SetupBasicGameInfo(); m_startup = new MyCommonProgramStartup(m_args); var appDataPath = m_startup.GetAppDataPath(); VRage.Platform.Windows.MyVRageWindows.Init(MyPerGameSettings.BasicGameInfo.ApplicationName, MySandboxGame.Log, appDataPath, false); MyInitializer.InvokeBeforeRun(AppId, MyPerGameSettings.BasicGameInfo.ApplicationName + "ModTool", MyVRage.Platform.System.GetAppDataPath()); MyRenderProxy.Initialize((IMyRender) new MyNullRender()); MyInitializer.InitCheckSum(); if (m_startup.PerformColdStart()) { return(false); } if (!m_startup.Check64Bit()) { return(false); } m_steamService = MySteamGameService.Create(MySandboxGame.IsDedicated, AppId); MyServiceManager.Instance.AddService(m_steamService); MyServerDiscoveryAggregator serverDiscoveryAggregator = new MyServerDiscoveryAggregator(); 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); if (m_useModIO) { MyGameService.WorkshopService.AddAggregate(modioService); } MyGameService.WorkshopService.AddAggregate(MySteamUgcService.Create(AppId, m_steamService)); if (!m_useModIO) { MyGameService.WorkshopService.AddAggregate(modioService); } SpaceEngineersGame.SetupPerGameSettings(); ManuallyAddDLCs(); return(true); }
protected override bool SetupBasicGameInfo() { SpaceEngineersGame.SetupBasicGameInfo(); m_startup = new MyCommonProgramStartup(new string[] { }); var appDataPath = m_startup.GetAppDataPath(); MyInitializer.InvokeBeforeRun(AppId, MyPerGameSettings.BasicGameInfo.ApplicationName + "ModTool", appDataPath); MyInitializer.InitCheckSum(); if (!m_startup.Check64Bit()) { return(false); } m_steamService = new WorkshopTool.MySteamService(MySandboxGame.IsDedicated, AppId); MyServiceManager.Instance.AddService <IMyGameService>(m_steamService); SpaceEngineersGame.SetupPerGameSettings(); return(true); }