diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index c13b6ebddb..c6b0445d69 100644 --- a/src/core/hle/service/fs/fs_user.cpp +++ b/src/core/hle/service/fs/fs_user.cpp @@ -69,10 +69,9 @@ static void OpenFile(Service::Interface* self) { rp.Pop(); // Always 0 ? ArchiveHandle archive_handle = rp.Pop(); - auto filename_type = static_cast(rp.Pop()); + auto filename_type = rp.PopEnum(); u32 filename_size = rp.Pop(); - FileSys::Mode mode; - mode.hex = rp.Pop(); + FileSys::Mode mode{rp.Pop()}; u32 attributes = rp.Pop(); // TODO(Link Mauve): do something with those attributes. VAddr filename_ptr = rp.PopStaticBuffer(nullptr); FileSys::Path file_path(filename_type, filename_size, filename_ptr);