Skip to content

Commit

Permalink
Version up
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhauled committed Dec 29, 2019
1 parent fafe807 commit 534e4a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions BepInEx.IPAHarmonyShimmer/BepInEx.IPAHarmonyShimmer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="HarmonyShimmer.cs" />
Expand Down
6 changes: 3 additions & 3 deletions BepInEx.IPAHarmonyShimmer/HarmonyShimmer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public static class HarmonyShimmer
public static IEnumerable<string> TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" };

private static readonly ManualLogSource Logger = Logging.Logger.CreateLogSource("IPAHarmonyShim");
public static ConfigWrapper<string> IPAPluginsPath { get; private set; }
public static ConfigFile cfgFile { get; } = new ConfigFile(Path.Combine(Paths.ConfigPath, Metadata.ConfigFileName), false);
public static ConfigEntry<string> IPAPluginsPath { get; private set; }
public static ConfigFile CfgFile { get; } = new ConfigFile(Path.Combine(Paths.ConfigPath, Metadata.ConfigFileName), false);

private static DefaultAssemblyResolver resolver;
private static ReaderParameters readerParameters;
Expand Down Expand Up @@ -56,7 +56,7 @@ private static void IsDefinitionPatch(TypeDefinition __instance, ref bool __resu

public static void Initialize()
{
IPAPluginsPath = cfgFile.Wrap(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDescription, Metadata.ConfigDefaultValue);
IPAPluginsPath = CfgFile.Bind(Metadata.ConfigSection, Metadata.ConfigKey, Metadata.ConfigDefaultValue, Metadata.ConfigDescription);

HarmonyWrapper.PatchAll(typeof(HarmonyShimmer));

Expand Down
2 changes: 1 addition & 1 deletion Shared/Metadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public static class Metadata
{
public const string PluginsVersion = "1.2";
public const string PluginsVersion = "1.2.1";

internal const string ConfigFileName = "BepInEx.IPALoader.cfg";
internal const string ConfigSection = "Config";
Expand Down

0 comments on commit 534e4a2

Please sign in to comment.