Dispose() public method

public Dispose ( ) : void
return void
Ejemplo n.º 1
0
        public ModuleDataManager(string modsDirectoryPath)
        {
            if (sInstance != null)
            {
                sInstance.Dispose();
                sInstance = null;
            }

            mModsDirectoryPath = JsonHelper.NormalizeSystemPath(modsDirectoryPath);
            sInstance          = this;
        }
Ejemplo n.º 2
0
        public ModuleDataManager(string modsDirectoryPath, string extraModsDirectoryPath)
        {
            if (sInstance != null)
            {
                sInstance.Dispose();
                sInstance = null;
            }

            mModsDirectoryPath = JsonHelper.NormalizeSystemPath(modsDirectoryPath);
            sInstance          = this;
            // The additional mods directory path can be empty if modder develops inside the mods folder
            if (extraModsDirectoryPath != string.Empty)
            {
                mSteamUploadsDirectoryPath = JsonHelper.NormalizeSystemPath(extraModsDirectoryPath);
            }
        }