Skip to content

Commit

Permalink
Fixing save file redirection.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Sep 14, 2015
1 parent 4d1d2ca commit 11f8d64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions SA2ModLoader/dllmain.cpp
Expand Up @@ -1008,6 +1008,20 @@ void __cdecl InitMods(void)
buf = new char[tmp.size() + 1];
strncpy(buf, tmp.c_str(), tmp.size() + 1);
WriteData((char **)0x445332, buf);
tmp = "./" + _mainsavepath + "/SONIC2B__S01";
buf = new char[tmp.size() + 1];
strncpy(buf, tmp.c_str(), tmp.size() + 1);
WriteData((char **)0x445317, buf);
WriteData((char **)0x689689, buf);
WriteData((char **)0x689AAE, buf);
WriteData((char **)0x689D27, buf);
WriteData((char **)0x689D52, buf);
WriteData((char **)0x173D070, buf);
tmp = "./" + _mainsavepath + "/SONIC2B__D01";
buf = new char[tmp.size() + 1];
strncpy(buf, tmp.c_str(), tmp.size() + 1);
WriteData((char **)0x445337, buf);
WriteData((char **)0x173D07C, buf);
}

if (!_chaosavepath.empty())
Expand Down

0 comments on commit 11f8d64

Please sign in to comment.