feat(console): add helpers for console active state

This commit is contained in:
Tristan 'Natrist' Cormier authored and GitHub committed 2023-04-15 14:40:07 -05:00
1 parent d67e13087a
commit 092ba0f881
2 files changed
+21

No files matched your search

+11
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
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