1
0
Fork 0
forked from suyu/suyu
suyu/src/common
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
..
logging logging/filter: Use std::string_view in ParseFilterString() 2018-07-20 15:58:46 -04:00
x64 cpu_detect.cpp: Change comment from citra to yuzu 2018-03-26 21:43:39 +02:00
alignment.h PICA: Align vertex attributes 2016-03-13 04:54:23 +01:00
assert.h Port #3474 from Citra 2018-07-07 14:17:44 +02:00
bit_field.h bit_field: Remove is_pod check, add is_trivially_copyable_v. 2018-04-17 18:00:18 -04:00
bit_set.h Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
break_points.cpp Remove unused import in break_points.cpp (#2763) 2017-06-08 21:16:46 -07:00
break_points.h Remove empty newlines in #include blocks. 2016-09-21 11:15:47 +09:00
cityhash.cpp common: Port cityhash code from Citra. 2018-04-13 23:48:22 -04:00
cityhash.h common: Port cityhash code from Citra. 2018-04-13 23:48:22 -04:00
CMakeLists.txt common: Remove chunk_file.h and linear_disk_cache.h 2018-04-26 14:59:32 -04:00
color.h Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
common_funcs.h Merge pull request #710 from lioncash/unused 2018-07-19 11:43:41 -07:00
common_paths.h file_util: Use an enum class for GetUserPath() 2018-07-21 16:21:19 -04:00
common_types.h common_types: Convert typedefs to using aliases 2018-04-19 22:26:35 -04:00
file_util.cpp file_util: Use an enum class for GetUserPath() 2018-07-21 16:21:19 -04:00
file_util.h file_util: Use an enum class for GetUserPath() 2018-07-21 16:21:19 -04:00
hash.h common: Port cityhash code from Citra. 2018-04-13 23:48:22 -04:00
math_util.h math_util: Remove the Clamp() function 2018-04-20 10:14:13 -04:00
memory_util.cpp Port #3579 from Citra 2018-07-07 13:59:18 +02:00
memory_util.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
microprofile.cpp Integrate the MicroProfile profiling library 2015-08-24 22:16:28 -03:00
microprofile.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
microprofileui.h Common: Remove section measurement from profiler (#1731) 2016-04-29 00:07:10 -07:00
misc.cpp common/misc: Deduplicate code in GetLastErrorMsg() 2018-07-19 09:15:38 -04:00
param_package.cpp param_package: Take std::string by value in string-based Set() function 2018-07-20 17:24:06 -04:00
param_package.h param_package: Take std::string by value in string-based Set() function 2018-07-20 17:24:06 -04:00
quaternion.h Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
scm_rev.cpp.in common: Add build timestamp to scm_rev. 2017-08-03 20:10:37 -04:00
scm_rev.h Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
scope_exit.h Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
string_util.cpp string_util: Remove AsciiToHex() 2018-07-18 23:57:15 -04:00
string_util.h string_util: Remove AsciiToHex() 2018-07-18 23:57:15 -04:00
swap.h common/swap: Remove unnecessary const on return value of swap() 2018-07-19 09:35:54 -04:00
synchronized_wrapper.h SynchronizedWrapper: Add Lock convenience method 2017-02-26 17:22:02 -08:00
telemetry.cpp common: Add a generic interface for logging telemetry fields. 2017-05-24 19:16:21 -04:00
telemetry.h telemetry: Remove unnecessary Field constructor 2018-07-18 00:32:35 -04:00
thread.cpp Support mingw cross-compile 2016-12-05 19:09:16 +01:00
thread.h common/thread: Remove unnecessary feature checking for thread_local 2018-04-19 22:41:18 -04:00
thread_queue_list.h Format: Run the new clang format on everything 2018-01-20 16:45:11 -07:00
threadsafe_queue.h CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119) 2018-01-08 19:10:25 -05:00
timer.cpp string_util: Remove StringFromFormat() and related functions 2018-04-29 18:52:33 -04:00
timer.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
vector_math.h vector_math: Ensure members are always initialized 2018-05-01 21:25:25 -04:00