From 2552efac01942364aba9bb12a7212540b9fa0f1a Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 12 Dec 2017 17:47:11 -0500 Subject: [PATCH] HLE/FS: Use PopEnum in OpenFile. --- src/core/hle/service/fs/fs_user.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);