public static void Purge()
        {
            if (!(GameDataManager.GameType == GameDataManager.GameTypes.DS1 ||
                  GameDataManager.GameType == GameDataManager.GameTypes.DS1R ||
                  GameDataManager.GameType == GameDataManager.GameTypes.DS3 ||
                  GameDataManager.GameType == GameDataManager.GameTypes.SDT))
            {
                return;
            }

            Main.WinForm.Invoke(new Action(() =>
            {
                ERRCHECK(result = _eventSystem.unload());
                _loadedFEVs.Clear();
            }));
        }
示例#2
0
        public static void Purge()
        {
            if (!initialised)
            {
                return;
            }

            //if (!(GameDataManager.GameType == GameDataManager.GameTypes.DS1 ||
            //   GameDataManager.GameType == GameDataManager.GameTypes.DS1R ||
            //   GameDataManager.GameType == GameDataManager.GameTypes.DS3 ||
            //   GameDataManager.GameType == GameDataManager.GameTypes.SDT))
            //{
            //    return;
            //}

            Main.WinForm.Invoke(new Action(() =>
            {
                ERRCHECK(result = _eventSystem.unload());
                _loadedFEVs.Clear();
                _loadedFEVs_FullPaths.Clear();
            }));
        }