mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-15 17:46:03 +03:00
feat(console): add helpers for console access enabled state
This commit is contained in:
parent
092ba0f881
commit
ef71ddc46e
@ -1,6 +1,15 @@
|
||||
#include "console/Console.hpp"
|
||||
|
||||
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() {
|
||||
return s_active;
|
||||
|
@ -3,6 +3,10 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
int32_t ConsoleAccessGetEnabled();
|
||||
|
||||
void ConsoleAccessSetEnabled(int32_t enable);
|
||||
|
||||
int32_t ConsoleGetActive();
|
||||
|
||||
void ConsoleSetActive(int32_t active);
|
||||
|
Loading…
Reference in New Issue
Block a user