mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01: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
1 changed files with 9 additions and 8 deletions
|
@ -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