mirror of
https://github.com/wiiu-env/wudd.git
synced 2024-11-22 01:49:15 +01:00
Throw an error then reading the disc fails while dumping .app files
This commit is contained in:
parent
189f20b662
commit
d933b645d8
@ -811,7 +811,13 @@ void ApplicationState::dumpAppFiles() {
|
||||
if (toRead > bufferSize) {
|
||||
toRead = bufferSize;
|
||||
}
|
||||
dataProvider->readRawContent(content, readBuffer, curOffset, toRead);
|
||||
|
||||
if(!dataProvider->readRawContent(content, readBuffer, curOffset, toRead)){
|
||||
DEBUG_FUNCTION_LINE("Failed to read content");
|
||||
this->setError(ERROR_WRITE_FAILED);
|
||||
forceExit = true;
|
||||
break;
|
||||
}
|
||||
if (file.write((const uint8_t *) readBuffer, toRead) != (int32_t) toRead) {
|
||||
DEBUG_FUNCTION_LINE("Failed to write");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user