Support for Wii U VC NFS images

This commit is contained in:
Jack Andersen
2019-11-23 17:24:33 -10:00
parent 11a0351d1c
commit 75fc574f81
8 changed files with 333 additions and 42 deletions

View File

@@ -28,9 +28,8 @@ public:
bool err = false;
auto ret = std::unique_ptr<IReadStream>(new ReadStream(m_fio->beginReadStream(offset), err));
if (err) {
return nullptr;
}
if (err)
return {};
return ret;
}
@@ -51,9 +50,8 @@ public:
bool err = false;
auto ret = std::unique_ptr<IWriteStream>(new WriteStream(m_fio->beginWriteStream(offset), err));
if (err) {
return nullptr;
}
if (err)
return {};
return ret;
}