Example #1
0
            public void Reset()
            {
                _names.Clear();
                _curPlayer = null;

                string[] files = Directory.GetFiles(_pm._playerPath);
                foreach (string file in files)
                {
                    string basename = Path.GetFileName(file);

                    if (!ParseFileName(basename))
                    {
                        continue;
                    }

                    _names.Enqueue(PlayerFile.NameFromFilename(basename));
                }
            }