mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 13:02:48 +00:00
service/fsp_srv: Remove unnecessary unknown member in OpenSaveDataFileSystem
The unknown member here is actually padding due to being passed as a struct. We can do the same, and remove the need to pop a padding word.
This commit is contained in:
parent
d9ee58a3b5
commit
d0ed3ff4b7
|
@ -781,16 +781,17 @@ void FSP_SRV::CreateSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
|
void FSP_SRV::OpenSaveDataFileSystem(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_INFO(Service_FS, "called.");
|
||||||
|
|
||||||
|
struct Parameters {
|
||||||
|
FileSys::SaveDataSpaceId save_data_space_id;
|
||||||
|
FileSys::SaveDataDescriptor descriptor;
|
||||||
|
};
|
||||||
|
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
|
const auto parameters = rp.PopRaw<Parameters>();
|
||||||
|
|
||||||
auto space_id = rp.PopRaw<FileSys::SaveDataSpaceId>();
|
auto dir = OpenSaveData(parameters.save_data_space_id, parameters.descriptor);
|
||||||
auto unk = rp.Pop<u32>();
|
|
||||||
LOG_INFO(Service_FS, "called with unknown={:08X}", unk);
|
|
||||||
|
|
||||||
auto save_struct = rp.PopRaw<FileSys::SaveDataDescriptor>();
|
|
||||||
|
|
||||||
auto dir = OpenSaveData(space_id, save_struct);
|
|
||||||
|
|
||||||
if (dir.Failed()) {
|
if (dir.Failed()) {
|
||||||
IPC::ResponseBuilder rb{ctx, 2, 0, 0};
|
IPC::ResponseBuilder rb{ctx, 2, 0, 0};
|
||||||
rb.Push(FileSys::ERROR_ENTITY_NOT_FOUND);
|
rb.Push(FileSys::ERROR_ENTITY_NOT_FOUND);
|
||||||
|
|
Loading…
Reference in a new issue