mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(console): toggle console access based on -console flag
This commit is contained in:
parent
04e625f6a7
commit
37460378a8
2 changed files with 2 additions and 43 deletions
|
|
@ -4,47 +4,6 @@
|
||||||
#include "event/Event.hpp"
|
#include "event/Event.hpp"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
enum CMDOPT {
|
|
||||||
CMD_D3D = 0,
|
|
||||||
CMD_D3D9EX = 1,
|
|
||||||
CMD_DATA_DIR = 2,
|
|
||||||
CMD_NO_LAG_FIX = 3,
|
|
||||||
CMD_LOADFILE = 4,
|
|
||||||
CMD_GAMETYPE = 5,
|
|
||||||
CMD_OPENGL = 6,
|
|
||||||
CMD_SW_TNL = 7,
|
|
||||||
CMD_TIMEDEMO = 8,
|
|
||||||
CMD_DEMOREZ = 9,
|
|
||||||
CMD_DEMODEPTH = 10,
|
|
||||||
CMD_DEMODETAIL = 11,
|
|
||||||
CMD_DEMOSOUND = 12,
|
|
||||||
CMD_FULL_SCREEN = 13,
|
|
||||||
CMD_22050HZ = 14,
|
|
||||||
CMD_NO_WARNINGS = 15,
|
|
||||||
CMDOPTS
|
|
||||||
};
|
|
||||||
|
|
||||||
enum WOWCMDOPT {
|
|
||||||
WOWCMD_RES_800x600 = 16,
|
|
||||||
WOWCMD_RES_1024x768 = 17,
|
|
||||||
WOWCMD_RES_1280x960 = 18,
|
|
||||||
WOWCMD_RES_1280x1024 = 19,
|
|
||||||
WOWCMD_RES_1600x1200 = 20,
|
|
||||||
WOWCMD_UP_TO_DATE = 21,
|
|
||||||
WOWCMD_16_BIT = 22,
|
|
||||||
WOWCMD_NO_FIX_LAG = 24,
|
|
||||||
WOWCMD_NO_SOUND = 26,
|
|
||||||
WOWCMD_SOUND_CHAOS = 27,
|
|
||||||
WOWCMD_DEPTH_16 = 29,
|
|
||||||
WOWCMD_DEPTH_24 = 30,
|
|
||||||
WOWCMD_DEPTH_32 = 31,
|
|
||||||
WOWCMD_WINDOWED = 32,
|
|
||||||
WOWCMD_CONSOLE = 35,
|
|
||||||
WOWCMD_HW_DETECT = 36,
|
|
||||||
WOWCMD_GX_OVERRIDE = 39,
|
|
||||||
WOWCMD_OPTS
|
|
||||||
};
|
|
||||||
|
|
||||||
class CVar;
|
class CVar;
|
||||||
|
|
||||||
namespace Client {
|
namespace Client {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#include "console/Device.hpp"
|
#include "console/Device.hpp"
|
||||||
|
#include "client/CmdLine.hpp"
|
||||||
#include "client/Gui.hpp"
|
#include "client/Gui.hpp"
|
||||||
#include "console/Console.hpp"
|
#include "console/Console.hpp"
|
||||||
#include "console/CVar.hpp"
|
#include "console/CVar.hpp"
|
||||||
|
|
@ -148,8 +149,7 @@ void ConsoleDeviceInitialize(const char* title) {
|
||||||
// TODO proper logic
|
// TODO proper logic
|
||||||
s_hwDetect = true;
|
s_hwDetect = true;
|
||||||
|
|
||||||
// TODO ConsoleAccessSetEnabled(CmdLineGetBool(35));
|
ConsoleAccessSetEnabled(CmdLineGetBool(WOWCMD_CONSOLE));
|
||||||
ConsoleAccessSetEnabled(1);
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue