mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 08:32:48 -06:00
HLE/FS: Use PopEnum in OpenFile.
This commit is contained in:
parent
d790ac465c
commit
2552efac01
1 changed files with 2 additions and 3 deletions
|
@ -69,10 +69,9 @@ static void OpenFile(Service::Interface* self) {
|
||||||
rp.Pop<u32>(); // Always 0 ?
|
rp.Pop<u32>(); // Always 0 ?
|
||||||
|
|
||||||
ArchiveHandle archive_handle = rp.Pop<u64>();
|
ArchiveHandle archive_handle = rp.Pop<u64>();
|
||||||
auto filename_type = static_cast<FileSys::LowPathType>(rp.Pop<u32>());
|
auto filename_type = rp.PopEnum<FileSys::LowPathType>();
|
||||||
u32 filename_size = rp.Pop<u32>();
|
u32 filename_size = rp.Pop<u32>();
|
||||||
FileSys::Mode mode;
|
FileSys::Mode mode{rp.Pop<u32>()};
|
||||||
mode.hex = rp.Pop<u32>();
|
|
||||||
u32 attributes = rp.Pop<u32>(); // TODO(Link Mauve): do something with those attributes.
|
u32 attributes = rp.Pop<u32>(); // TODO(Link Mauve): do something with those attributes.
|
||||||
VAddr filename_ptr = rp.PopStaticBuffer(nullptr);
|
VAddr filename_ptr = rp.PopStaticBuffer(nullptr);
|
||||||
FileSys::Path file_path(filename_type, filename_size, filename_ptr);
|
FileSys::Path file_path(filename_type, filename_size, filename_ptr);
|
||||||
|
|
Loading…
Reference in a new issue