Пример #1
0
		static bool Prefix(MainMenuController __instance, ref GameRoot ____root)
		{
			ModLogger.Log("{MainMenuController} -- altered headstart called!");
			BackendThreadManager.StartParams parameters = new BackendThreadManager.StartParams();
			parameters.Savegame = (string)null;
			parameters.Mod = "custom/freeplay";
			bool useLoginWindow = false;
			____root.InitializeSession(MainMenu.StartMode.SingleplayerWithMod, parameters, useLoginWindow);
			
			return false; // skip the original method
		}