Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHinrichs authored Mar 15, 2024
1 parent 801cf80 commit 57383b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static void Main(string[] args)
using FileStream input = File.OpenRead(args[0]);
BinaryReader br = new(input);

if (new(br.ReadChars(4) != "DCPK")
if (new string(br.ReadChars(4)) != "DCPK")
throw new System.Exception("Not a Minor Key Games CPK file.");

int fileNum = br.ReadInt32();
Expand Down

0 comments on commit 57383b5

Please sign in to comment.