mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Fix FS::GetThisSaveDataSecureValue stub
Based on https://github.com/citra-emu/citra/pull/7191
This commit is contained in:
parent
a98fcfc56f
commit
7a78b2cf20
1 changed files with 4 additions and 1 deletions
|
@ -670,6 +670,9 @@ void FSService::getThisSaveDataSecureValue(u32 messagePointer) {
|
||||||
|
|
||||||
mem.write32(messagePointer, IPC::responseHeader(0x86F, 1, 0));
|
mem.write32(messagePointer, IPC::responseHeader(0x86F, 1, 0));
|
||||||
mem.write32(messagePointer + 4, Result::Success);
|
mem.write32(messagePointer + 4, Result::Success);
|
||||||
|
mem.write8(messagePointer + 8, 0); // Secure value does not exist
|
||||||
|
mem.write8(messagePointer + 12, 1); // TODO: What is this?
|
||||||
|
mem.write64(messagePointer + 16, 0); // Secure value
|
||||||
}
|
}
|
||||||
|
|
||||||
void FSService::setThisSaveDataSecureValue(u32 messagePointer) {
|
void FSService::setThisSaveDataSecureValue(u32 messagePointer) {
|
||||||
|
@ -760,4 +763,4 @@ void FSService::renameFile(u32 messagePointer) {
|
||||||
// Everything is OK, let's do the rename. Both archives should match so we don't need the dest anymore
|
// Everything is OK, let's do the rename. Both archives should match so we don't need the dest anymore
|
||||||
const HorizonResult res = sourceArchive->archive->renameFile(sourcePath, destPath);
|
const HorizonResult res = sourceArchive->archive->renameFile(sourcePath, destPath);
|
||||||
mem.write32(messagePointer + 4, static_cast<u32>(res));
|
mem.write32(messagePointer + 4, static_cast<u32>(res));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue