public ModuleDataManager(string modsDirectoryPath) { if (sInstance != null) { sInstance.Dispose(); sInstance = null; } mModsDirectoryPath = JsonHelper.NormalizeSystemPath(modsDirectoryPath); sInstance = this; }