Skip to content

Commit

Permalink
Merge pull request #282 from BUTR/dev
Browse files Browse the repository at this point in the history
v2.10.0
  • Loading branch information
Aragas authored Jan 8, 2024
2 parents 84b8b14 + 480e7f1 commit 202ef6a
Show file tree
Hide file tree
Showing 19 changed files with 207 additions and 140 deletions.
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
# Bannerlord.UIExtenderEx
<p align="center">
<a href="https://github.com/BUTR/Bannerlord.UIExtenderEx" alt="Logo">
<img src="https://github.com/BUTR/Bannerlord.UIExtenderEx/blob/dev/resources/Butter.png?raw=true" />
<a href="https://github.com/BUTR/Bannerlord.UIExtenderEx">
<img src="https://github.com/BUTR/Bannerlord.UIExtenderEx/blob/dev/resources/Butter.png?raw=true" alt="Logo"/>
</a>
</br>
<a href="https://github.com/BUTR/Bannerlord.UIExtenderEx" alt="Lines Of Code">
<img src="https://aschey.tech/tokei/github/BUTR/Bannerlord.UIExtenderEx?category=code" />
<br/>
<a href="https://github.com/BUTR/Bannerlord.UIExtenderEx">
<img src="https://aschey.tech/tokei/github/BUTR/Bannerlord.UIExtenderEx?category=code" alt="Lines Of Code"/>
</a>
<a href="https://www.codefactor.io/repository/github/butr/bannerlord.uiextenderex">
<img src="https://www.codefactor.io/repository/github/butr/bannerlord.uiextenderex/badge" alt="CodeFactor" />
<img src="https://www.codefactor.io/repository/github/butr/bannerlord.uiextenderex/badge" alt="CodeFactor"/>
</a>
<a href="https://codeclimate.com/github/BUTR/Bannerlord.UIExtenderEx/maintainability">
<img alt="Code Climate maintainability" src="https://img.shields.io/codeclimate/maintainability-percentage/BUTR/Bannerlord.UIExtenderEx">
</a>
<a href="https://butr.github.io/Bannerlord.UIExtenderEx" alt="Documentation">
<img src="https://img.shields.io/badge/Documentation-%F0%9F%94%8D-blue?style=flat" />
<a href="https://butr.github.io/Bannerlord.UIExtenderEx">
<img src="https://img.shields.io/badge/Documentation-%F0%9F%94%8D-blue?style=flat" alt="Documentation"/>
</a>
<a title="Crowdin" target="_blank" href="https://crowdin.com/project/uiextenderex">
<img src="https://badges.crowdin.net/uiextenderex/localized.svg">
<img src="https://badges.crowdin.net/uiextenderex/localized.svg" alt="Crowdin">
</a>
</br>
<br/>
<a href="https://github.com/BUTR/Bannerlord.UIExtenderEx/actions/workflows/test.yml?query=branch%3Adev">
<img alt="GitHub Workflow Status (event)" src="https://img.shields.io/github/actions/workflow/status/BUTR/Bannerlord.UIExtenderEx/test.yml?branch=dev&label=Game%20Stable%20and%20Beta">
</a>
<a href="https://codecov.io/gh/BUTR/Bannerlord.UIExtenderEx">
<img src="https://codecov.io/gh/BUTR/Bannerlord.UIExtenderEx/branch/dev/graph/badge.svg" />
<img src="https://codecov.io/gh/BUTR/Bannerlord.UIExtenderEx/branch/dev/graph/badge.svg" alt="CodeCov"/>
</a>
</br>
<a href="https://www.nuget.org/packages/Bannerlord.UIExtenderEx" alt="NuGet Bannerlord.UIExtenderEx">
<img src="https://img.shields.io/nuget/v/Bannerlord.UIExtenderEx.svg?label=NuGet%20Bannerlord.UIExtenderEx&colorB=blue" />
<br/>
<a href="https://www.nuget.org/packages/Bannerlord.UIExtenderEx">
<img src="https://img.shields.io/nuget/v/Bannerlord.UIExtenderEx.svg?label=NuGet%20Bannerlord.UIExtenderEx&colorB=blue" alt="NuGet Bannerlord.UIExtenderEx"/>
</a>
</br>
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102" alt="NexusMods UIExtenderEx">
<img src="https://img.shields.io/badge/NexusMods-UIExtenderEx-yellow.svg" />
<br/>
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102">
<img src="https://img.shields.io/badge/NexusMods-UIExtenderEx-yellow.svg" alt="NexusMods UIExtenderEx"/>
</a>
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102" alt="NexusMods UIExtenderEx">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-version-pzk4e0ejol6j.runkit.sh%3FgameId%3Dmountandblade2bannerlord%26modId%3D2102" />
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-version-pzk4e0ejol6j.runkit.sh%3FgameId%3Dmountandblade2bannerlord%26modId%3D2102" alt="NexusMods UIExtenderEx"/>
</a>
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102" alt="NexusMods UIExtenderEx">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-downloads-ayuqql60xfxb.runkit.sh%2F%3Ftype%3Dunique%26gameId%3D3174%26modId%3D2102" />
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-downloads-ayuqql60xfxb.runkit.sh%2F%3Ftype%3Dunique%26gameId%3D3174%26modId%3D2102" alt="NexusMods UIExtenderEx"/>
</a>
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102" alt="NexusMods UIExtenderEx">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-downloads-ayuqql60xfxb.runkit.sh%2F%3Ftype%3Dtotal%26gameId%3D3174%26modId%3D2102" />
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-downloads-ayuqql60xfxb.runkit.sh%2F%3Ftype%3Dtotal%26gameId%3D3174%26modId%3D2102" alt="NexusMods UIExtenderEx"/>
</a>
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102" alt="NexusMods UIExtenderEx">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-downloads-ayuqql60xfxb.runkit.sh%2F%3Ftype%3Dviews%26gameId%3D3174%26modId%3D2102" />
<a href="https://www.nexusmods.com/mountandblade2bannerlord/mods/2102">
<img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fnexusmods-downloads-ayuqql60xfxb.runkit.sh%2F%3Ftype%3Dviews%26gameId%3D3174%26modId%3D2102" alt="NexusMods UIExtenderEx"/>
</a>
</br>
<br/>
<a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2859222409">
<img alt="Steam Mod Configuration Menu" src="https://img.shields.io/badge/Steam-UIExtenderEx-blue.svg" />
</a>
Expand All @@ -62,7 +62,7 @@
<a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2859222409">
<img alt="Steam Favorites" src="https://img.shields.io/steam/favorites/2859222409?label=Favorites&color=blue">
</a>
</br>
<br/>
</p>

A library that enables multiple mods to alter standard game interface.
Expand All @@ -72,7 +72,7 @@ Previously, a fork of [UIExtenderLib](https://github.com/shdwp/UIExtenderLib) th
This module should be one of the highest in loading order. Ideally, it should be loaded after ``Bannerlord.Harmony`` or ``Bannerlord.ButterLib``.

## For Players
This mod is a dependency mod that does not provide anything by itself. You need to additionaly install mods that use it.
This mod is a dependency mod that does not provide anything by itself. You need to additionally install mods that use it.

## Usage
Check the [``Articles``](https://butr.github.io/Bannerlord.UIExtenderEx/articles/v2/Overview.html) section of our documentation!
Expand Down
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!--Development Variables-->
<PropertyGroup>
<!--Module Version-->
<Version>2.9.0</Version>
<Version>2.10.0</Version>
<!--Harmony Version-->
<HarmonyVersion>2.2.2</HarmonyVersion>
<HarmonyExtensionsVersion>3.2.0.77</HarmonyExtensionsVersion>
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.10.0
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.8
* BETA! Might cause issues with the UI in specific cases!
* UIExtender now only disables AutoGens that are patched, should increase the game's performance
---------------------------------------------------------------------------------------------------
Version: 2.9.0
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.8
* Added the ability to disable specific Prefabs and Mixins, also to deregister a mods UIExtender
Expand Down
17 changes: 17 additions & 0 deletions docs/articles/general/InteractingWithOtherMods.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Interacting with Other Mods

You can access another mod's `UIExtender` and modify it to your liking.
At the moment you are able to disable the UIExtender, deregister it (meaning fully disabling it without the ability to enable it back) and enable.
You are able to disable a specific Prefab or Mixin.
```csharp
// Get Mod Configuration Menu's UIExtender
var mcm = UIExtender.GetUIExtenderFor("MCM.UI");

// Disable a prefab
var mcmPrefab = AccessTools.TypeByName("MCM.UI.UIExtenderEx.OptionsPrefabExtension1");
mcm.Disable(mcmPrefab);

// Disable a Mixin
var mcmMixin = AccessTools.TypeByName("MCM.UI.UIExtenderEx.OptionsVMMixin");
mcm.Disable(mcmMixin);
```
3 changes: 3 additions & 0 deletions docs/articles/general/Overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview

Check the specific articles.
6 changes: 6 additions & 0 deletions docs/articles/general/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- name: Overview
href: Overview.md
- name: Prefab
href: Prefab.md
- name: Interacting With Other Mods
href: InteractingWithOtherMods.md
2 changes: 1 addition & 1 deletion docs/articles/interface/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
href: Overview.md
- name: Prefab
href: Prefab.md
- name: ViewModelMixin
- name: ViewModel Mixin
href: ViewModelMixin.md
4 changes: 2 additions & 2 deletions docs/articles/runtime/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
href: Overview.md
- name: Registration
href: Registration.md
- name: PrefabPatching
- name: Prefab Patching
href: PrefabPatching.md
- name: ViewModelPatching
- name: ViewModel Patching
href: ViewModelPatching.md
3 changes: 3 additions & 0 deletions docs/articles/toc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
items:
- name: General
href: general/toc.yml
homepage: general/Overview.md
- name: APIv2
href: v2/toc.yml
homepage: v2/Overview.md
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/v2/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
href: PrefabExtensionSetAttributePatch.md
- name: PrefabExtensionInsertPatch
href: PrefabExtensionInsertPatch.md
- name: ViewModelMixin
- name: ViewModel Mixin
href: ViewModelMixin.md
- name: Examples
href: Examples.md
62 changes: 34 additions & 28 deletions src/Bannerlord.UIExtenderEx.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bannerlord.UIExtenderEx.Tes
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{6A6FB1BE-5426-4835-A308-0E74E66299D5}"
ProjectSection(SolutionItems) = preProject
..\docs\articles\toc.yml = ..\docs\articles\toc.yml
..\docs\docfx.json = ..\docs\docfx.json
..\docs\toc.yml = ..\docs\toc.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v1", "v1", "{395402D4-28B5-4974-943D-04B7D5F6673D}"
Expand All @@ -53,33 +53,38 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "v2", "v2", "{B4D6A888-2D8F-
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "interface", "interface", "{252A68C5-9E10-4E28-AF49-37E6DF1E62F0}"
ProjectSection(SolutionItems) = preProject
..\docs\articles\Interface\Overview.png = ..\docs\articles\Interface\Overview.png
..\docs\articles\Interface\Overview.puml = ..\docs\articles\Interface\Overview.puml
..\docs\articles\Interface\Prefab.png = ..\docs\articles\Interface\Prefab.png
..\docs\articles\Interface\Prefab.puml = ..\docs\articles\Interface\Prefab.puml
..\docs\articles\Interface\ViewModelMixin.png = ..\docs\articles\Interface\ViewModelMixin.png
..\docs\articles\Interface\ViewModelMixin.puml = ..\docs\articles\Interface\ViewModelMixin.puml
..\docs\articles\Interface\Overview.md = ..\docs\articles\Interface\Overview.md
..\docs\articles\Interface\Prefab.md = ..\docs\articles\Interface\Prefab.md
..\docs\articles\Interface\ViewModelMixin.md = ..\docs\articles\Interface\ViewModelMixin.md
..\docs\articles\Interface\toc.yml = ..\docs\articles\Interface\toc.yml
..\docs\articles\interface\Overview.svg = ..\docs\articles\interface\Overview.svg
..\docs\articles\interface\Overview.puml = ..\docs\articles\interface\Overview.puml
..\docs\articles\interface\Overview.md = ..\docs\articles\interface\Overview.md
..\docs\articles\interface\Prefab.svg = ..\docs\articles\interface\Prefab.svg
..\docs\articles\interface\Prefab.puml = ..\docs\articles\interface\Prefab.puml
..\docs\articles\interface\Prefab.md = ..\docs\articles\interface\Prefab.md
..\docs\articles\interface\ViewModelMixin.svg = ..\docs\articles\interface\ViewModelMixin.svg
..\docs\articles\interface\ViewModelMixin.puml = ..\docs\articles\interface\ViewModelMixin.puml
..\docs\articles\interface\ViewModelMixin.md = ..\docs\articles\interface\ViewModelMixin.md
..\docs\articles\interface\toc.yml = ..\docs\articles\interface\toc.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "runtime", "runtime", "{8969A5E2-BC12-46F8-BF4A-E8F73771E4E5}"
ProjectSection(SolutionItems) = preProject
..\docs\articles\Runtime\ViewModelPatching.png = ..\docs\articles\Runtime\ViewModelPatching.png
..\docs\articles\Runtime\ViewModelPatching.puml = ..\docs\articles\Runtime\ViewModelPatching.puml
..\docs\articles\Runtime\Overview.png = ..\docs\articles\Runtime\Overview.png
..\docs\articles\Runtime\Overview.puml = ..\docs\articles\Runtime\Overview.puml
..\docs\articles\Runtime\PrefabPatching.png = ..\docs\articles\Runtime\PrefabPatching.png
..\docs\articles\Runtime\PrefabPatching.puml = ..\docs\articles\Runtime\PrefabPatching.puml
..\docs\articles\Runtime\Registration.png = ..\docs\articles\Runtime\Registration.png
..\docs\articles\Runtime\Registration.puml = ..\docs\articles\Runtime\Registration.puml
..\docs\articles\Runtime\Overview.md = ..\docs\articles\Runtime\Overview.md
..\docs\articles\Runtime\PrefabPatching.md = ..\docs\articles\Runtime\PrefabPatching.md
..\docs\articles\Runtime\Registration.md = ..\docs\articles\Runtime\Registration.md
..\docs\articles\Runtime\ViewModelPatching.md = ..\docs\articles\Runtime\ViewModelPatching.md
..\docs\articles\Runtime\toc.yml = ..\docs\articles\Runtime\toc.yml
..\docs\articles\runtime\ViewModelPatching.svg = ..\docs\articles\runtime\ViewModelPatching.svg
..\docs\articles\runtime\ViewModelPatching.puml = ..\docs\articles\runtime\ViewModelPatching.puml
..\docs\articles\runtime\ViewModelPatching.md = ..\docs\articles\runtime\ViewModelPatching.md
..\docs\articles\runtime\Overview.svg = ..\docs\articles\runtime\Overview.svg
..\docs\articles\runtime\Overview.puml = ..\docs\articles\runtime\Overview.puml
..\docs\articles\runtime\Overview.md = ..\docs\articles\runtime\Overview.md
..\docs\articles\runtime\PrefabPatching.svg = ..\docs\articles\runtime\PrefabPatching.svg
..\docs\articles\runtime\PrefabPatching.puml = ..\docs\articles\runtime\PrefabPatching.puml
..\docs\articles\runtime\PrefabPatching.md = ..\docs\articles\runtime\PrefabPatching.md
..\docs\articles\runtime\Registration.svg = ..\docs\articles\runtime\Registration.svg
..\docs\articles\runtime\Registration.puml = ..\docs\articles\runtime\Registration.puml
..\docs\articles\runtime\Registration.md = ..\docs\articles\runtime\Registration.md
..\docs\articles\runtime\toc.yml = ..\docs\articles\runtime\toc.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "articles", "articles", "{8034BC17-4282-4A4B-942B-80EEC315C1C2}"
ProjectSection(SolutionItems) = preProject
..\docs\articles\toc.yml = ..\docs\articles\toc.yml
EndProjectSection
EndProject
Global
Expand Down Expand Up @@ -118,10 +123,11 @@ Global
{74E13D44-2846-49A3-A5AC-D432AD83C9F0} = {9D2C61D6-D1B6-4C89-80B2-6DAE2D5FCEE4}
{7C6449DA-635E-4BD9-AAFE-CF2C4B2FB988} = {74E13D44-2846-49A3-A5AC-D432AD83C9F0}
{6A6FB1BE-5426-4835-A308-0E74E66299D5} = {9D2C61D6-D1B6-4C89-80B2-6DAE2D5FCEE4}
{395402D4-28B5-4974-943D-04B7D5F6673D} = {6A6FB1BE-5426-4835-A308-0E74E66299D5}
{B4D6A888-2D8F-49A4-87C5-6CD18D8F818B} = {6A6FB1BE-5426-4835-A308-0E74E66299D5}
{252A68C5-9E10-4E28-AF49-37E6DF1E62F0} = {6A6FB1BE-5426-4835-A308-0E74E66299D5}
{8969A5E2-BC12-46F8-BF4A-E8F73771E4E5} = {6A6FB1BE-5426-4835-A308-0E74E66299D5}
{8034BC17-4282-4A4B-942B-80EEC315C1C2} = {6A6FB1BE-5426-4835-A308-0E74E66299D5}
{252A68C5-9E10-4E28-AF49-37E6DF1E62F0} = {8034BC17-4282-4A4B-942B-80EEC315C1C2}
{8969A5E2-BC12-46F8-BF4A-E8F73771E4E5} = {8034BC17-4282-4A4B-942B-80EEC315C1C2}
{395402D4-28B5-4974-943D-04B7D5F6673D} = {8034BC17-4282-4A4B-942B-80EEC315C1C2}
{B4D6A888-2D8F-49A4-87C5-6CD18D8F818B} = {8034BC17-4282-4A4B-942B-80EEC315C1C2}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {31629F18-48B4-4C3E-87C3-BDCB9BBF1BBD}
Expand Down
24 changes: 17 additions & 7 deletions src/Bannerlord.UIExtenderEx/Components/PrefabComponent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Bannerlord.BUTR.Shared.Helpers;
using Bannerlord.BUTR.Shared.Extensions;
using Bannerlord.BUTR.Shared.Helpers;
using Bannerlord.UIExtenderEx.Utils;

using HarmonyLib.BUTR.Extensions;
Expand All @@ -21,7 +22,7 @@ namespace Bannerlord.UIExtenderEx.Components;
/// </summary>
internal partial class PrefabComponent
{
private sealed record PrefabPatch(Type Type, Action<XmlDocument> Patcher);
internal sealed record PrefabPatch(Type Type, Action<XmlDocument> Patcher);

private delegate Dictionary<string, string> GetPrefabNamesAndPathsFromCurrentPathDelegate(object instance);
private static readonly GetPrefabNamesAndPathsFromCurrentPathDelegate? PrefabNamesMethod =
Expand All @@ -36,14 +37,23 @@ private sealed record PrefabPatch(Type Type, Action<XmlDocument> Patcher);
/// <summary>
/// Registered movie patches
/// </summary>
private readonly ConcurrentDictionary<string, List<PrefabPatch>> _moviePatches = new();
internal readonly ConcurrentDictionary<string, List<PrefabPatch>> MoviePatches = new();
private readonly ConcurrentDictionary<Type, bool> _enabledPatches = new();

public PrefabComponent(string moduleName)
{
_moduleName = moduleName;
}

public IEnumerable<string> GetMoviesToPatch()
{
foreach (var (movie, patches) in MoviePatches)
{
if (patches.Any(x => _enabledPatches.TryGetValue(x.Type, out var enabled) && enabled))
yield return movie;
}
}

/// <summary>
/// Enables all Prefabs.
/// </summary>
Expand Down Expand Up @@ -96,7 +106,7 @@ public void RegisterPatch(string movie, Type prefabType, Action<XmlDocument> pat
return;
}

_moviePatches.GetOrAdd(movie, _ => new List<PrefabPatch>()).Add(new(prefabType, patcher));
MoviePatches.GetOrAdd(movie, _ => new List<PrefabPatch>()).Add(new(prefabType, patcher));
_enabledPatches[prefabType] = false;
}

Expand All @@ -115,7 +125,7 @@ public void RegisterPatch(string movie, Type prefabType, Action<XmlNode> patcher
return;
}

_moviePatches.GetOrAdd(movie, _ => new List<PrefabPatch>()).Add(new(prefabType, patcher));
MoviePatches.GetOrAdd(movie, _ => new List<PrefabPatch>()).Add(new(prefabType, patcher));
_enabledPatches[prefabType] = false;
}

Expand All @@ -140,7 +150,7 @@ public void RegisterPatch(string movie, string? xpath, Type prefabType, Action<X

public void Deregister()
{
_moviePatches.Clear();
MoviePatches.Clear();
_enabledPatches.Clear();
}

Expand Down Expand Up @@ -193,7 +203,7 @@ private static bool TryRemoveComments(XmlNode? node)
/// <param name="document"></param>
public void ProcessMovieIfNeeded(string movie, XmlDocument document)
{
if (!_moviePatches.TryGetValue(movie, out var patches))
if (!MoviePatches.TryGetValue(movie, out var patches))
return;

if (_enabledPatches.Values.All(x => !x))
Expand Down
Loading

0 comments on commit 202ef6a

Please sign in to comment.