Fix FS::GetThisSaveDataSecureValue stub
Based on https://github.com/citra-emu/citra/pull/7191
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user