mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-21 05:24:32 +03:00
feat(console): add "script" command to debug LUA code
This commit is contained in:
1 parent
d63ebf7696
commit
0950f7dae3
7 files changed
+52
-3
No files matched your search
@@ -17,6 +17,7 @@ target_link_libraries(console
|
||||
PUBLIC
|
||||
common
|
||||
gx
|
||||
ui
|
||||
storm
|
||||
PRIVATE
|
||||
client
|
||||
|
||||
@@ -231,7 +231,7 @@ void ConsoleInitializeCommonCommand() {
|
||||
}
|
||||
|
||||
void ConsoleInitializeDebugCommand() {
|
||||
// TODO
|
||||
ConsoleCommandRegister("script", ConsoleCommand_Script, DEFAULT, nullptr);
|
||||
}
|
||||
|
||||
int32_t ConsoleCommandComplete(const char* partial, const char** previous, int32_t direction) {
|
||||
|
||||
@@ -12,6 +12,7 @@ int32_t CCGxRestart(const char* command, const char* argument);
|
||||
DECLARE_COMMAND(Quit);
|
||||
DECLARE_COMMAND(Ver);
|
||||
DECLARE_COMMAND(SetMap);
|
||||
DECLARE_COMMAND(Script);
|
||||
|
||||
DECLARE_COMMAND(Help);
|
||||
DECLARE_COMMAND(FontColor);
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#include "console/Command.hpp"
|
||||
#include "console/command/Commands.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
|
||||
DECLARE_COMMAND(Script) {
|
||||
FrameScript_Execute(arguments, "CONSOLE", nullptr);
|
||||
return 1;
|
||||
}
|
||||
Reference in new issue
Block a user