mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-17 03:09:47 +12:00
force size to be zero
This commit is contained in:
parent
47a01a8296
commit
cd25e11f8e
2 changed files with 4 additions and 2 deletions
|
@ -277,7 +277,7 @@ Rust::Result<ArchiveBase::FormatInfo, HorizonResult> ExtSaveDataArchive::getForm
|
|||
return Err(Result::FS::NotFormatted);
|
||||
}
|
||||
|
||||
FormatInfo ret;
|
||||
FormatInfo ret = {};
|
||||
auto [success, bytesRead] = file.readBytes(&ret, sizeof(FormatInfo));
|
||||
file.close();
|
||||
|
||||
|
@ -286,6 +286,8 @@ Rust::Result<ArchiveBase::FormatInfo, HorizonResult> ExtSaveDataArchive::getForm
|
|||
return Err(Result::FS::NotFormatted);
|
||||
}
|
||||
|
||||
ret.size = 0;
|
||||
|
||||
return Ok(ret);
|
||||
}
|
||||
|
||||
|
|
|
@ -561,7 +561,7 @@ void FSService::createExtSaveData(u32 messagePointer) {
|
|||
const u32 smdhPointer = mem.read32(messagePointer + 44);
|
||||
|
||||
ArchiveBase::FormatInfo info {
|
||||
.size = (u32) (sizeLimit * 0x200),
|
||||
.size = 0,
|
||||
.numOfDirectories = numOfDirectories,
|
||||
.numOfFiles = numOfFiles,
|
||||
.duplicateData = false
|
||||
|
|
Loading…
Add table
Reference in a new issue