Skip to content

Commit

Permalink
Double whoops.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Jan 22, 2016
1 parent 8a73a7f commit bd214b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SA2ModLoader/dllmain.cpp
Expand Up @@ -1117,7 +1117,7 @@ void __cdecl InitMods(void)
ifstream codes_str("mods\\Codes.dat", ifstream::binary);
if (codes_str.is_open())
{
static const char codemagic[6] = { 'c', 'o', 'd', 'e', 'v', '4' };
static const char codemagic[6] = { 'c', 'o', 'd', 'e', 'v', '5' };
char buf[sizeof(codemagic)];
codes_str.read(buf, sizeof(buf));
if (!memcmp(buf, codemagic, sizeof(codemagic)))
Expand Down
2 changes: 1 addition & 1 deletion SA2ModManager/MainForm.cs
Expand Up @@ -196,7 +196,7 @@ private void Save()
using (FileStream fs = File.Create(codedatpath))
using (BinaryWriter bw = new BinaryWriter(fs, System.Text.Encoding.ASCII))
{
bw.Write(new[] { 'c', 'o', 'd', 'e', 'v', '4' });
bw.Write(new[] { 'c', 'o', 'd', 'e', 'v', '5' });
bw.Write(codes.Count);
foreach (Code item in codes)
{
Expand Down

0 comments on commit bd214b6

Please sign in to comment.