1
0
Fork 0

HLE/FS: Use PopEnum in OpenFile.

This commit is contained in:
Subv 2017-12-12 17:47:11 -05:00
parent d790ac465c
commit 2552efac01
1 changed files with 2 additions and 3 deletions

View File

@ -69,10 +69,9 @@ static void OpenFile(Service::Interface* self) {
rp.Pop<u32>(); // Always 0 ?
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>();
FileSys::Mode mode;
mode.hex = rp.Pop<u32>();
FileSys::Mode mode{rp.Pop<u32>()};
u32 attributes = rp.Pop<u32>(); // TODO(Link Mauve): do something with those attributes.
VAddr filename_ptr = rp.PopStaticBuffer(nullptr);
FileSys::Path file_path(filename_type, filename_size, filename_ptr);