mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 04:46:27 -05: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. |
||
---|---|---|
.. | ||
config.cpp | ||
config.h | ||
configure.ui | ||
configure_debug.cpp | ||
configure_debug.h | ||
configure_debug.ui | ||
configure_dialog.cpp | ||
configure_dialog.h | ||
configure_general.cpp | ||
configure_general.h | ||
configure_general.ui | ||
configure_graphics.cpp | ||
configure_graphics.h | ||
configure_graphics.ui | ||
configure_input.cpp | ||
configure_input.h | ||
configure_input.ui | ||
configure_system.cpp | ||
configure_system.h | ||
configure_system.ui |