added WBFS discIO support

This commit is contained in:
Jack Andersen
2015-07-04 12:02:37 -10:00
parent f093f633b4
commit 3501e90e2c
3 changed files with 266 additions and 37 deletions

View File

@@ -35,11 +35,7 @@ public:
#endif
if (!fp)
{
#if NOD_UCS2
LogModule.report(LogVisor::Error, L"Unable to open '%s' for reading", filepath.c_str());
#else
LogModule.report(LogVisor::Error, "Unable to open '%s' for reading", filepath.c_str());
#endif
LogModule.report(LogVisor::Error, _S("Unable to open '%s' for reading"), filepath.c_str());
return std::unique_ptr<IReadStream>();
}
fseeko(fp, offset, SEEK_SET);
@@ -66,11 +62,7 @@ public:
#endif
if (!fp)
{
#if NOD_UCS2
LogModule.report(LogVisor::Error, L"Unable to open '%s' for writing", filepath.c_str());
#else
LogModule.report(LogVisor::Error, "Unable to open '%s' for writing", filepath.c_str());
#endif
LogModule.report(LogVisor::Error, _S("Unable to open '%s' for writing"), filepath.c_str());
return std::unique_ptr<IWriteStream>();
}
fseeko(fp, offset, SEEK_SET);