Skip to content

Commit 704e92b

Browse files
committed
fix checksum
1 parent d8f2f10 commit 704e92b

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

GLMod/GLMod.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace GLMod
2525
{
26-
[BepInPlugin(Id, "GLMod", "5.1.0")]
26+
[BepInPlugin(Id, "GLMod", "5.1.1")]
2727
[BepInProcess("Among Us.exe")]
2828
public class GLMod : BasePlugin
2929
{
@@ -70,12 +70,7 @@ public async override void Load()
7070
stepConf = Config.Bind("Validation", "steps", "");
7171
stepRpc = Config.Bind("Validation", "RPC", "");
7272
configPath = Path.GetDirectoryName(Config.ConfigFilePath);
73-
74-
if (!await verifyGLMod())
75-
{
76-
return;
77-
}
78-
73+
7974
Random random = new Random();
8075
string newSupportId = new string(Enumerable.Repeat(supportIdChars, 10)
8176
.Select(s => s[random.Next(s.Length)]).ToArray());
@@ -902,7 +897,7 @@ private static string CalculateFileSHA512(string filePath)
902897
}
903898
}
904899

905-
public async Task<bool> verifyDll(string checksumId, string dllPath)
900+
public static async Task<bool> verifyDll(string checksumId, string dllPath)
906901
{
907902
string localChecksum = GLMod.CalculateFileSHA512(dllPath);
908903
string remoteChecksum = await GLMod.getChecksum(checksumId);
@@ -917,7 +912,7 @@ public async Task<bool> verifyDll(string checksumId, string dllPath)
917912
return false;
918913
}
919914

920-
private async Task<bool> verifyGLMod()
915+
private static async Task<bool> verifyGLMod()
921916
{
922917
var pluginAttribute = typeof(GLMod).GetCustomAttribute<BepInPlugin>();
923918
string version = pluginAttribute?.Version.ToString();

GLMod/GLMod.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>net6.0</TargetFramework>
4-
<Version>5.1.0</Version>
4+
<Version>5.1.1</Version>
55
<GameVersion>2025.3.31</GameVersion>
66

77
<Description>GLMod</Description>

0 commit comments

Comments
 (0)