示例#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);
        }
示例#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);
        }