mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-07-26 18:36:00 +03:00
Compare commits
1 Commits
ea1acadb11
...
6656c8ca5a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6656c8ca5a |
@ -4,7 +4,6 @@
|
|||||||
#include "console/Command.hpp"
|
#include "console/Command.hpp"
|
||||||
#include "console/Screen.hpp"
|
#include "console/Screen.hpp"
|
||||||
#include "event/Event.hpp"
|
#include "event/Event.hpp"
|
||||||
#include "storm/Unicode.hpp"
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
static int32_t s_historyIndex = 0;
|
static int32_t s_historyIndex = 0;
|
||||||
@ -12,20 +11,24 @@ static int32_t s_historyIndex = 0;
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) {
|
||||||
char character[8] = {};
|
char character[2];
|
||||||
|
|
||||||
if (ConsoleAccessGetEnabled() && EventIsKeyDown(ConsoleGetHotKey())) {
|
if (ConsoleAccessGetEnabled() && EventIsKeyDown(ConsoleGetHotKey())) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ConsoleGetActive()) {
|
if (ConsoleGetActive()) {
|
||||||
SUniSPutUTF8(data->ch, character);
|
character[0] = char(data->ch);
|
||||||
|
character[1] = 0;
|
||||||
|
|
||||||
PasteInInputLine(character);
|
PasteInInputLine(character);
|
||||||
ResetHighlight();
|
ResetHighlight();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SUniSPutUTF8(data->ch, character);
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,10 +366,7 @@ void CGlueMgr::PollAccountLogin(int32_t errorCode, const char* msg, int32_t comp
|
|||||||
FrameScript_SignalEvent(4, "%s", msg);
|
FrameScript_SignalEvent(4, "%s", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!complete) {
|
if (complete) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
if (errorCode != 2) {
|
if (errorCode != 2) {
|
||||||
// TODO
|
// TODO
|
||||||
@ -409,6 +406,7 @@ void CGlueMgr::PollAccountLogin(int32_t errorCode, const char* msg, int32_t comp
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGlueMgr::PollLoginServerLogin() {
|
void CGlueMgr::PollLoginServerLogin() {
|
||||||
|
Loading…
Reference in New Issue
Block a user