mirror of
https://github.com/wiiu-env/wudd.git
synced 2024-11-22 01:49:15 +01:00
Don't split files when saving to USB
This commit is contained in:
parent
e87ad53031
commit
4947387198
@ -126,10 +126,10 @@ ApplicationState::eSubState WUDDumperState::update(Input *input) {
|
|||||||
}
|
}
|
||||||
if (targetFormat == DUMP_AS_WUX) {
|
if (targetFormat == DUMP_AS_WUX) {
|
||||||
this->fileHandle = std::make_unique<WUXFileWriter>(StringTools::fmt("%swudump/%s/game.wux", getPathForDevice(targetDevice).c_str(), discId), READ_SECTOR_SIZE * WRITE_BUFFER_NUM_SECTORS,
|
this->fileHandle = std::make_unique<WUXFileWriter>(StringTools::fmt("%swudump/%s/game.wux", getPathForDevice(targetDevice).c_str(), discId), READ_SECTOR_SIZE * WRITE_BUFFER_NUM_SECTORS,
|
||||||
SECTOR_SIZE, true);
|
SECTOR_SIZE, targetDevice == TARGET_SD);
|
||||||
} else {
|
} else {
|
||||||
this->fileHandle = std::make_unique<WUDFileWriter>(StringTools::fmt("%swudump/%s/game.wud", getPathForDevice(targetDevice).c_str(), discId), READ_SECTOR_SIZE * WRITE_BUFFER_NUM_SECTORS,
|
this->fileHandle = std::make_unique<WUDFileWriter>(StringTools::fmt("%swudump/%s/game.wud", getPathForDevice(targetDevice).c_str(), discId), READ_SECTOR_SIZE * WRITE_BUFFER_NUM_SECTORS,
|
||||||
SECTOR_SIZE, true);
|
SECTOR_SIZE, targetDevice == TARGET_SD);
|
||||||
}
|
}
|
||||||
if (!this->fileHandle->isOpen()) {
|
if (!this->fileHandle->isOpen()) {
|
||||||
DEBUG_FUNCTION_LINE("Failed to open file");
|
DEBUG_FUNCTION_LINE("Failed to open file");
|
||||||
|
@ -67,7 +67,7 @@ int32_t WriteOnlyFileWithCache::write(const uint8_t *addr, size_t writeSize) {
|
|||||||
uint32_t realWriteSize = SPLIT_SIZE - pos;
|
uint32_t realWriteSize = SPLIT_SIZE - pos;
|
||||||
|
|
||||||
if (realWriteSize > 0) {
|
if (realWriteSize > 0) {
|
||||||
DEBUG_FUNCTION_LINE("Write remaining %016lld bytes", realWriteSize);
|
DEBUG_FUNCTION_LINE("Write remaining %8d bytes", realWriteSize);
|
||||||
if (CFile::write(reinterpret_cast<const uint8_t *>(addr), realWriteSize) != (int32_t) realWriteSize) {
|
if (CFile::write(reinterpret_cast<const uint8_t *>(addr), realWriteSize) != (int32_t) realWriteSize) {
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user