feat(console): add helpers for console active state

This commit is contained in:
Tristan 'Natrist' Cormier 2023-04-15 15:40:07 -04:00 committed by GitHub
parent d67e13087a
commit 092ba0f881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

11
src/console/Console.cpp Normal file
View 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
View 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