mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 11:32:29 +00:00
feat(console): hardware detection et cetera
This commit is contained in:
parent
97bbe2ea66
commit
31f215ea14
118 changed files with 4059 additions and 1931 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <storm/Error.hpp>
|
||||
#include <common/DataStore.hpp>
|
||||
|
||||
#include "console/Line.hpp"
|
||||
#include "console/Console.hpp"
|
||||
#include "world/World.hpp"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ void ProcessCommandLine() {
|
|||
}
|
||||
|
||||
const char* CmdLineGetString(CMDOPT opt) {
|
||||
static char buffer[260] = {0};
|
||||
static char buffer[260];
|
||||
|
||||
SCmdGetString(opt, buffer, 260);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
#ifndef CLIENT_GUI_HPP
|
||||
#define CLIENT_GUI_HPP
|
||||
|
||||
#include "client/gui/OsGui.hpp"
|
||||
|
||||
#endif
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
#ifndef CLIENT_GUI_OS_GUI_HPP
|
||||
#define CLIENT_GUI_OS_GUI_HPP
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
void* OsGuiGetWindow(int32_t type);
|
||||
|
||||
bool OsGuiIsModifierKeyDown(int32_t key);
|
||||
|
||||
int32_t OsGuiProcessMessage(void* message);
|
||||
|
||||
void OsGuiSetGxWindow(void* window);
|
||||
|
||||
#endif
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
#include "client/gui/OsGui.hpp"
|
||||
|
||||
static void* s_GxDevWindow = nullptr;
|
||||
|
||||
void* OsGuiGetWindow(int32_t type) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
return s_GxDevWindow;
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
bool OsGuiIsModifierKeyDown(int32_t key) {
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
int32_t OsGuiProcessMessage(void* message) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void OsGuiSetGxWindow(void* window) {
|
||||
s_GxDevWindow = window;
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#include "client/gui/OsGui.hpp"
|
||||
|
||||
void* OsGuiGetWindow(int32_t type) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool OsGuiIsModifierKeyDown(int32_t key) {
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
int32_t OsGuiProcessMessage(void* message) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void OsGuiSetGxWindow(void* window) {
|
||||
// TODO
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
#include "client/gui/OsGui.hpp"
|
||||
#include <windows.h>
|
||||
|
||||
static void* s_GxDevWindow;
|
||||
|
||||
void* OsGuiGetWindow(int32_t type) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
return s_GxDevWindow;
|
||||
case 1:
|
||||
return GetActiveWindow();
|
||||
case 2:
|
||||
return GetForegroundWindow();
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
bool OsGuiIsModifierKeyDown(int32_t key) {
|
||||
// TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
int32_t OsGuiProcessMessage(void* message) {
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
void OsGuiSetGxWindow(void* window) {
|
||||
s_GxDevWindow = window;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue