summaryrefslogtreecommitdiff
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
authorGravatar lat9nq2023-06-21 21:41:06 -0400
committerGravatar lat9nq2023-07-21 10:56:55 -0400
commite7f01128f181a7b754f6d5f94122cde059c7ed1a (patch)
treef41e233577fbb839e39f91a86d3f5177aa0fa861 /src/common/settings_common.h
parentcmake: Use standard preprocessor on MSVC (diff)
downloadyuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.gz
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.xz
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.zip
settings: Give indices to enums
Diffstat (limited to 'src/common/settings_common.h')
-rw-r--r--src/common/settings_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 669d32204..b355384a4 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -220,6 +220,11 @@ public:
220 */ 220 */
221 [[nodiscard]] virtual constexpr bool Ranged() const = 0; 221 [[nodiscard]] virtual constexpr bool Ranged() const = 0;
222 222
223 /**
224 * @returns The index of the enum if the underlying setting type is an enum, else max of u32.
225 */
226 [[nodiscard]] virtual constexpr u32 EnumIndex() const = 0;
227
223 /* 228 /*
224 * Switchable settings 229 * Switchable settings
225 */ 230 */