public ModRelay(string path) { ModPath = path; IsValid = !ModData.AbsolutelyIgnore(ModPath); if (IsValid) { if (Donkey.AintThisPS(path)) { AssociatedModData = new InvalidModData(path); MyType = EUModType.Invalid; return; } EUModType mt = GetModType(ModPath); MyType = mt; switch (mt) { case EUModType.mmPatch: AssociatedModData = new mmPatchData(path); break; case EUModType.Partmod: AssociatedModData = new PartModData(path); break; case EUModType.BepPlugin: AssociatedModData = new BepPluginData(path); break; case EUModType.BepPatcher: AssociatedModData = new BepPatcherData(path); break; case EUModType.Invalid: AssociatedModData = new InvalidModData(path); break; case EUModType.Unknown: default: AssociatedModData = new ModData(path); MyType = EUModType.Unknown; break; } } }
public ModRelay(string path) { ModPath = path; isValid = !ModData.AbsolutelyIgnore(ModPath); if (isValid) { if (BlepOut.AintThisPS(path)) { AssociatedModData = new InvalidModData(path); MyType = ModType.Invalid; return; } ModType mt = GetModType(ModPath); switch (mt) { case ModType.Unknown: AssociatedModData = new ModData(path); MyType = ModType.Unknown; break; case ModType.Patch: AssociatedModData = new PtModData(path); MyType = ModType.Patch; break; case ModType.Partmod: AssociatedModData = new HkModData(path); MyType = ModType.Partmod; break; case ModType.BepPlugin: AssociatedModData = new BepPluginData(path); MyType = ModType.BepPlugin; break; case ModType.Invalid: AssociatedModData = new InvalidModData(path); MyType = ModType.Invalid; break; } } }