示例#1
0
文件: Main.cs 项目: RHY3756547/FreeSO
		internal static void RunGame()
		{
            var iPad = UIDevice.CurrentDevice.Model.Contains("iPad");
            //TODO: disable iPad retina somehow
            FSOEnvironment.ContentDir = "Content/";
			FSOEnvironment.GFXContentDir = "Content/iOS/";
			FSOEnvironment.UserDir = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
			FSOEnvironment.Linux = true;
			FSOEnvironment.DirectX = false;
			FSOEnvironment.SoftwareKeyboard = true;
			FSOEnvironment.SoftwareDepth = true;
            FSOEnvironment.UseMRT = false;
			FSOEnvironment.UIZoomFactor = iPad?1:2;
            FSOEnvironment.DPIScaleFactor = iPad ? 2 : 1;
            FSO.Files.ImageLoader.UseSoftLoad = false;

            if (File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "The Sims Online.zip")))
                File.Delete(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "The Sims Online.zip"));

			var start = new GameStartProxy();
            start.SetPath(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "The Sims Online/TSOClient/"));//"/private/var/mobile/Documents/The Sims Online/TSOClient/");

            TSOGame game = new TSOGame();
            GameFacade.DirectX = false;
            FSO.LotView.World.DirectX = false;
            game.Run();

#if !__IOS__ && !__TVOS__
			game.Dispose();
#endif
        }
示例#2
0
 public void Start(bool useDX)
 {
     Game = new TSOGame();
     GameFacade.DirectX = useDX;
     World.DirectX      = useDX;
     Game.Run();
     Game.Dispose();
 }
示例#3
0
 public void Start(bool useDX)
 {
     TSOGame game = new TSOGame();
     GameFacade.DirectX = useDX;
     World.DirectX = useDX;
     game.Run();
     game.Dispose();
 }