summaryrefslogtreecommitdiff
path: root/indra/newview/rlvactions.h
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2024-08-31 01:33:27 +0200
committerKitty Barnett <develop@catznip.com>2024-08-31 22:16:46 +0200
commitc820bb2929a37fb222ce0d7368d699e81f5edc00 (patch)
tree30f4f17db0b39738ba23b68c3d20b7f5afa0fe4f /indra/newview/rlvactions.h
parente92a06d68114c933599da12d75221504ebac77e0 (diff)
Minimal code needed to add RLVa with an on/off toggle
Diffstat (limited to 'indra/newview/rlvactions.h')
-rw-r--r--indra/newview/rlvactions.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/rlvactions.h b/indra/newview/rlvactions.h
new file mode 100644
index 0000000000..ac4fc73339
--- /dev/null
+++ b/indra/newview/rlvactions.h
@@ -0,0 +1,19 @@
+#pragma once
+
+// ============================================================================
+// RlvActions - developer-friendly non-RLVa code facing class, use in lieu of RlvHandler whenever possible
+//
+
+class RlvActions
+{
+ // ================
+ // Helper functions
+ // ================
+public:
+ /*
+ * Convenience function to check if RLVa is enabled without having to include rlvhandler.h
+ */
+ static bool isRlvEnabled();
+};
+
+// ============================================================================