summaryrefslogtreecommitdiffstats
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-22 03:41:06 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commite7f01128f181a7b754f6d5f94122cde059c7ed1a (patch)
treef41e233577fbb839e39f91a86d3f5177aa0fa861 /src/common/settings_common.h
parentcmake: Use standard preprocessor on MSVC (diff)
downloadyuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.gz
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.bz2
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.lz
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.xz
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.tar.zst
yuzu-e7f01128f181a7b754f6d5f94122cde059c7ed1a.zip
Diffstat (limited to '')
-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:
*/
[[nodiscard]] virtual constexpr bool Ranged() const = 0;
+ /**
+ * @returns The index of the enum if the underlying setting type is an enum, else max of u32.
+ */
+ [[nodiscard]] virtual constexpr u32 EnumIndex() const = 0;
+
/*
* Switchable settings
*/