diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-22 03:41:06 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:55 +0200 |
commit | e7f01128f181a7b754f6d5f94122cde059c7ed1a (patch) | |
tree | f41e233577fbb839e39f91a86d3f5177aa0fa861 /src/common/settings_common.h | |
parent | cmake: Use standard preprocessor on MSVC (diff) | |
download | yuzu-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.h | 5 |
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 */ |