Wii image generation fixes

This commit is contained in:
Jack Andersen
2016-01-22 13:45:58 -10:00
parent 7403996ed3
commit e9bac54e10
8 changed files with 168 additions and 32 deletions

View File

@@ -56,8 +56,12 @@ public:
WriteStream(const SystemString& path, uint64_t offset)
{
#if NOD_UCS2
fp = _wfopen(path.c_str(), L"ab");
fclose(fp);
fp = _wfopen(path.c_str(), L"r+b");
#else
fp = fopen(path.c_str(), "ab");
fclose(fp);
fp = fopen(path.c_str(), "r+b");
#endif
if (!fp)