private static void CanRunPatch(IRunnabilityState state) { PatcherSettings settings = Settings.Value; if (settings.AssetOutputDirectory != "" && !Directory.Exists(settings.AssetOutputDirectory)) { throw new Exception("Cannot find output directory specified in settings: " + settings.AssetOutputDirectory); } if (settings.Mode != Mode.Simple && settings.MO2DataPath == "") { throw new Exception("MO2 Data Path must be set for any mode other than Simple."); } if (settings.MO2DataPath != "" && !Directory.Exists(settings.MO2DataPath)) { throw new Exception("Cannot find the Mod Organizer 2 Mods folder specified in settings: " + settings.MO2DataPath); } }
private static void CanRunPatch(IRunnabilityState state) { switch (state.Settings.GameRelease.ToCategory()) { case GameCategory.Skyrim: if (File.Exists(Path.Combine(state.Settings.DataFolderPath, "Scripts\\ANDR_FollowerFavorCarryLimitScript.pex")) == false) { throw new Exception("Cannot find Scripts\\ANDR_FollowerFavorCarryLimitScript.pex. Make sure you have Andrealphus' Gameplay Tweaks - ANDR Tweaks 01 - Follower Favor Carry Limit installed."); } ModKey.TryFromNameAndExtension("Follower Favor Carry Limit.esp", out var origModKey); if (state.LoadOrder.Any(lol => lol.ModKey == origModKey)) { throw new Exception("Follower Favor Carry Limit.esp must be removed from your load order before running this patcher."); } break; default: throw new NotImplementedException(); } }
public static async Task RunnabilityCheck(IRunnabilityState state) { state.LoadOrder.AssertHasMod(ModKey.FromNameAndExtension("ActionSpeedX.esp")); }
public static void Runable(IRunnabilityState state) { state.LoadOrder.AssertHasMod(ModKey.FromNameAndExtension("DSerCombatGameplayOverhaul.esp")); }