mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(console): add helpers for console access enabled state
This commit is contained in:
parent
092ba0f881
commit
ef71ddc46e
2 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue