Exemplo n.º 1
0
        private int RunGames(string folder)
        {
            GameStartInfo[] startInfos = GameFinder.FindGames(folder, true);

            this.interpreter.Start(startInfos, this.ReadPreferences());

            return(0);
        }
Exemplo n.º 2
0
        private int RunGame(string folder)
        {
            if (ResourceLoader.IsGameFolder(new GameFolder(folder)))
            {
                GameStartInfo startInfo = GameFinder.FindGame(folder);
                if (startInfo != null)
                {
                    this.interpreter.Start(startInfo, this.ReadPreferences());

                    return(0);
                }
            }

            return(-1);
        }