mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-20 21:14:29 +03:00
feat(console): add helpers for console access enabled state
This commit is contained in:
1 parent
092ba0f881
commit
ef71ddc46e
2 files changed
+13
No files matched your search
@@ -1,6 +1,15 @@
|
|||||||
#include "console/Console.hpp"
|
#include "console/Console.hpp"
|
||||||
|
|
||||||
static int32_t s_active;
|
static int32_t s_active;
|
||||||
|
static int32_t s_consoleAccessEnabled;
|
||||||
|
|
||||||
|
int32_t ConsoleAccessGetEnabled() {
|
||||||
|
return s_consoleAccessEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ConsoleAccessSetEnabled(int32_t enable) {
|
||||||
|
s_consoleAccessEnabled = enable;
|
||||||
|
}
|
||||||
|
|
||||||
int32_t ConsoleGetActive() {
|
int32_t ConsoleGetActive() {
|
||||||
return s_active;
|
return s_active;
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
int32_t ConsoleAccessGetEnabled();
|
||||||
|
|
||||||
|
void ConsoleAccessSetEnabled(int32_t enable);
|
||||||
|
|
||||||
int32_t ConsoleGetActive();
|
int32_t ConsoleGetActive();
|
||||||
|
|
||||||
void ConsoleSetActive(int32_t active);
|
void ConsoleSetActive(int32_t active);
|
||||||
|
|||||||
Reference in new issue
Block a user