1
0
Fork 0
forked from suyu/suyu
suyu/src/yuzu
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
..
configuration file_util: Use an enum class for GetUserPath() 2018-07-21 16:21:19 -04:00
debugger gpu: Rename Get3DEngine() to Maxwell3D() 2018-07-20 18:34:49 -04:00
util qt: Migrate to Qt 5 signal/slot connection syntax where applicable 2018-01-18 20:09:40 -05:00
about_dialog.cpp Add Dark theme, Icon theming 2018-03-30 14:14:37 +02:00
about_dialog.h Implement "About" dialog 2018-01-14 19:15:45 +01:00
aboutdialog.ui qt: Update about dialog to show license for GPLv2 only. 2018-01-14 17:27:40 -05:00
bootmanager.cpp OpenGL: Use MakeCurrent/DoneCurrent for multithreaded rendering. 2018-07-14 02:50:35 -04:00
bootmanager.h bootmanager: Minor tidiness/correctness changes 2018-01-17 18:35:02 -05:00
CMakeLists.txt Add configurable logging backends 2018-07-02 21:45:47 -04:00
game_list.cpp Merge pull request #684 from lioncash/nonmember 2018-07-18 18:55:00 -07:00
game_list.h game_list: Make ContainsAllWords an internally linked non-member function 2018-07-18 16:52:14 -04:00
game_list_p.h clang-format 2018-01-16 18:05:21 +00:00
hotkeys.cpp hotkeys: Add missing <QTreeWidgetItem> include 2018-01-17 20:00:25 -05:00
hotkeys.h Massive removal of unused modules 2018-01-12 19:11:03 -07:00
hotkeys.ui Massive removal of unused modules 2018-01-12 19:11:03 -07:00
Info.plist macOS: Update Info.plist 2018-01-13 23:11:51 +00:00
main.cpp file_util: Use an enum class for GetUserPath() 2018-07-21 16:21:19 -04:00
main.h Add 'Load Folder' menu option 2018-06-14 12:27:29 -04:00
main.ui Add 'Load Folder' menu option 2018-06-14 12:27:29 -04:00
ui_settings.cpp Massive removal of unused modules 2018-01-12 19:11:03 -07:00
ui_settings.h Add configurable logging backends 2018-07-02 21:45:47 -04:00
yuzu.rc Removing unused settings and yuzu rebranding 2018-01-12 19:11:05 -07:00