mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-15 17:46:03 +03:00
feat(console): add helpers for console active state
This commit is contained in:
parent
d67e13087a
commit
092ba0f881
11
src/console/Console.cpp
Normal file
11
src/console/Console.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "console/Console.hpp"
|
||||
|
||||
static int32_t s_active;
|
||||
|
||||
int32_t ConsoleGetActive() {
|
||||
return s_active;
|
||||
}
|
||||
|
||||
void ConsoleSetActive(int32_t active) {
|
||||
s_active = active;
|
||||
}
|
10
src/console/Console.hpp
Normal file
10
src/console/Console.hpp
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef CONSOLE_CONSOLE_HPP
|
||||
#define CONSOLE_CONSOLE_HPP
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
int32_t ConsoleGetActive();
|
||||
|
||||
void ConsoleSetActive(int32_t active);
|
||||
|
||||
#endif // ifndef CONSOLE_CONSOLE_HPP
|
Loading…
Reference in New Issue
Block a user