Skip to content

Commit

Permalink
1.11.10 (#68)
Browse files Browse the repository at this point in the history
- Introduced the `SE_PLUGIN_THROW_ON_FAILED_METHOD_VERIFICATION`
environment variable for
internal testing with new game versions

No functional change.
  • Loading branch information
viktor-ferenczi authored Oct 7, 2024
1 parent 314dcaa commit 688952f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ClientPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.11.9.0")]
[assembly: AssemblyFileVersion("1.11.9.0")]
[assembly: AssemblyVersion("1.11.10.0")]
[assembly: AssemblyFileVersion("1.11.10.0")]
4 changes: 2 additions & 2 deletions DedicatedPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.11.9.0")]
[assembly: AssemblyFileVersion("1.11.9.0")]
[assembly: AssemblyVersion("1.11.10.0")]
[assembly: AssemblyFileVersion("1.11.10.0")]
13 changes: 13 additions & 0 deletions Shared/Patches/PatchHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static bool HarmonyPatchAll(IPluginLogger log, Harmony harmony)
if (Common.Plugin.Config.DetectCodeChanges && Environment.GetEnvironmentVariable("SE_PLUGIN_DISABLE_METHOD_VERIFICATION") == null)
{
log.Debug("Scanning for conflicting code changes");
var throwOnFailedVerification = Environment.GetEnvironmentVariable("SE_PLUGIN_THROW_ON_FAILED_METHOD_VERIFICATION") != null;
try
{
var codeChanges = EnsureCode.Verify().ToList();
Expand All @@ -34,12 +35,24 @@ public static bool HarmonyPatchAll(IPluginLogger log, Harmony harmony)
log.Critical("Detected conflicting code changes:");
foreach (var codeChange in codeChanges)
log.Info(codeChange.ToString());

if (throwOnFailedVerification)
{
throw new Exception("Detected conflicting code changes");
}

return false;
}
}
catch (Exception ex)
{
log.Critical(ex, "Failed to scan for conflicting code changes");

if (throwOnFailedVerification)
{
throw;
}

return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions TorchPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.11.9.0")]
[assembly: AssemblyFileVersion("1.11.9.0")]
[assembly: AssemblyVersion("1.11.10.0")]
[assembly: AssemblyFileVersion("1.11.10.0")]
2 changes: 1 addition & 1 deletion TorchPlugin/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<Name>PerformanceImprovements</Name>
<Guid>c2cf3ed2-c6ac-4dbd-ab9a-613a1ef67784</Guid>
<Repository>PerformanceImprovements</Repository>
<Version>v1.11.9.0</Version>
<Version>v1.11.10.0</Version>
</PluginManifest>

0 comments on commit 688952f

Please sign in to comment.