mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-23 18:02:46 -06:00
d66b43dadf
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. |
||
---|---|---|
.. | ||
configuration | ||
debugger | ||
util | ||
about_dialog.cpp | ||
about_dialog.h | ||
aboutdialog.ui | ||
bootmanager.cpp | ||
bootmanager.h | ||
CMakeLists.txt | ||
game_list.cpp | ||
game_list.h | ||
game_list_p.h | ||
hotkeys.cpp | ||
hotkeys.h | ||
hotkeys.ui | ||
Info.plist | ||
main.cpp | ||
main.h | ||
main.ui | ||
ui_settings.cpp | ||
ui_settings.h | ||
yuzu.rc |