2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
yuzu/src/core/hle/service/ns
Lioncash d66b43dadf file_util: Use an enum class for GetUserPath()
Instead of using an unsigned int as a parameter and expecting a user to
always pass in the correct values, we can just convert the enum into an
enum class and use that type as the parameter type instead, which makes
the interface more type safe.

We also get rid of the bookkeeping "NUM_" element in the enum by just
using an unordered map. This function is generally low-frequency in
terms of calls (and I'd hope so, considering otherwise would mean we're
slamming the disk with IO all the time) so I'd consider this acceptable
in this case.
2018-07-21 16:21:19 -04:00
..
ns.cpp service: Use nested namespace specifiers where applicable 2018-04-19 22:20:28 -04:00
ns.h service: Use nested namespace specifiers where applicable 2018-04-19 22:20:28 -04:00
pl_u.cpp file_util: Use an enum class for GetUserPath() 2018-07-21 16:21:19 -04:00
pl_u.h GetSharedFontInOrderOfPriority (#381) 2018-05-01 16:28:36 -04:00