Skip to content

Commit

Permalink
Swap from Harmony to MMHookGen
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiq-The-Dude committed May 29, 2021
1 parent 634660d commit 0db1232
Show file tree
Hide file tree
Showing 16 changed files with 255 additions and 283 deletions.
5 changes: 4 additions & 1 deletion Better1911/Better1911.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\Libs\Assembly-CSharp.dll</HintPath>
<HintPath>..\libs\Assembly-CSharp_publicized.dll</HintPath>
</Reference>
<Reference Include="MMHOOK_Assembly-CSharp">
<HintPath>..\libs\MMHOOK_Assembly-CSharp.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion Better1911/Configs/Frame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public FrameConfig(string section, ConfigFile config)
RemoveTexture = config.Bind(section, nameof(RemoveTexture), false, "Enable to remove texture. This can allow cleaner finishes and better recoloring.");
}
}
}
}
4 changes: 2 additions & 2 deletions Better1911/Configs/GlowSights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public GlowSightsConfig(string section, ConfigFile config)
{
DisableGlowSights = config.Bind(section, nameof(DisableGlowSights), false, "Hide the glow sights");
CustomColor = config.Bind(section, nameof(CustomColor), false, "Enable custom coloring of the glow sights");

var c = new Vector4(255, 0, 0, 1);
RearColor = config.Bind(section, nameof(RearColor), c, "Color of the rear glow sights (RGBA)");
FrontColor = config.Bind(section, nameof(FrontColor), c, "Color of the front glow sight (RGBA)");
Intensity = config.Bind(section, nameof(Intensity), 1.0f, "Intensity of the glow");
}
}
}
}
2 changes: 1 addition & 1 deletion Better1911/Configs/Grips.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public GripsConfig(string section, ConfigFile config)
Specularity = config.Bind(section, nameof(Specularity), 0f, "Specularity for the material");
}
}
}
}
4 changes: 2 additions & 2 deletions Better1911/Configs/GunCustomization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class GunCustomizationConfig

public FrameConfig Frame { get; }
public SlideConfig Slide { get; }
public GripsConfig Grips { get; }
public GripsConfig Grips { get; }

public GunCustomizationConfig(string section, ConfigFile config)
{
Expand All @@ -19,4 +19,4 @@ public GunCustomizationConfig(string section, ConfigFile config)
Grips = new GripsConfig(nameof(Grips), config);
}
}
}
}
3 changes: 2 additions & 1 deletion Better1911/Configs/Magazine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public class MagazineConfig
{
public ConfigEntry<bool> FixMagPos { get; }
public ConfigEntry<MagazineMaterial> CustomMagazineMaterial { get; }

public MagazineConfig(string section, ConfigFile config)
{
FixMagPos = config.Bind(section, nameof(FixMagPos), true, "Attempts to fix the standard capacity magazine positions for M1911 Tactical & Operator");
Expand All @@ -19,4 +20,4 @@ public enum MagazineMaterial
Frame
}
}
}
}
2 changes: 1 addition & 1 deletion Better1911/Configs/Root.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ public RootConfig(ConfigFile config)
Magazine = new MagazineConfig(nameof(Magazine), config);
}
}
}
}
2 changes: 1 addition & 1 deletion Better1911/Configs/Shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ public abstract class SharedConfigs : IConfig
float IConfig.Specularity => Specularity.Value;
float IConfig.RecolorIntensity => RecolorIntensity.Value;
}
}
}
2 changes: 1 addition & 1 deletion Better1911/Configs/Slide.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public SlideConfig(string section, ConfigFile config)
RemoveTexture = config.Bind(section, nameof(RemoveTexture), false, "Enable to remove texture. This can allow cleaner finishes and better recoloring");
}
}
}
}
2 changes: 1 addition & 1 deletion Better1911/IConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ public interface IConfig
float Specularity { get; }
float RecolorIntensity { get; }
}
}
}
256 changes: 0 additions & 256 deletions Better1911/Patches.cs

This file was deleted.

Loading

0 comments on commit 0db1232

Please sign in to comment.