Ejemplo n.º 1
0
        public static NFSGame GetGameFromPath(string path)
        {
            foreach (var game in SupportedDatabase.SupportedGames)
            {
                var fileName = game.ExectuableFileName;
                var final    = Path.Combine(path, fileName);

                if (File.Exists(final))
                {
                    return(GameSymbolData.GetGameBySymbolEntry(final));
                }
            }

            return(NFSGame.Undetermined);
        }
Ejemplo n.º 2
0
        public static LibOpenNFS.Core.NFSGame GetNFSGameFromPath(string path)
        {
            Game game = null;

            for (int i = 0; i < SupportedDatabase.SupportedGames.Length; i++)
            {
                string fileName = SupportedDatabase.SupportedGames[i].ExectuableFileName;
                string final    = Path.Combine(path, fileName);

                if (File.Exists(final))
                {
                    return(GameSymbolData.GetGameBySymbolEntry(final));
                }
            }

            return(NFSGame.Undetermined);
        }