Skip to content

Commit

Permalink
Version detection with data.win
Browse files Browse the repository at this point in the history
  • Loading branch information
ners-xd authored Dec 11, 2024
1 parent 04305d1 commit 26b410d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Deltarune.asl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ init

string hash;
using(var md5 = System.Security.Cryptography.MD5.Create())
using(var fs = File.OpenRead(modules.First().FileName))
using(var fs = File.OpenRead(new FileInfo(module.FileName).DirectoryName + @"\data.win"))
hash = string.Concat(md5.ComputeHash(fs).Select(b => b.ToString("X2")));
switch(mms)
{
Expand All @@ -299,7 +299,7 @@ init
break;

case 7495680:
if(hash != "DCFB86F7A80D9906BBBAFA1B2C224848")
if(hash != "5FBE01F2BC1C04F45D809FFD060AC386")
version = "Demo v1.08/v1.09";
else
version = "Demo v1.10";
Expand All @@ -310,7 +310,7 @@ init
break;

case 9650176:
if(hash != "14AF94E0435EB4CBE3BB5A03AB4218C4")
if(hash != "7AD299A8B33FA449E20EDFE0FEDEDDB2")
version = "Demo v1.16/v1.17";
else
version = "Demo v1.19";
Expand Down

0 comments on commit 26b410d

Please sign in to comment.