Compare commits

..
2 Commits
3 changed files with 22 additions and 7 deletions

No files matched your search

+20
View File
@@ -84,6 +84,26 @@ CONSOLELINE::~CONSOLELINE() {
}
}
void CONSOLELINE::Backspace() {
if (this->inputpos > this->inputstart) {
if (this->chars <= this->inputpos) {
this->buffer[this->inputpos - 1] = '\0';
}
else {
memcpy(
&this->buffer[this->inputpos - 1],
&this->buffer[this->inputpos],
this->chars - this->inputpos + 1
);
}
this->inputpos--;
this->chars--;
SetInputString(this->buffer);
}
}
void DrawBackground() {
uint16_t indices[] = {
0, 1, 2, 3
+1
View File
@@ -19,6 +19,7 @@ class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
// Member functions
~CONSOLELINE();
void Backspace();
};
void ConsoleScreenAnimate(float elapsedSec);
+1 -7
View File
@@ -120,13 +120,7 @@ int32_t Script_GetDebugStats(lua_State* L) {
}
int32_t Script_IsDebugBuild(lua_State* L) {
#if defined(NDEBUG)
lua_pushboolean(L, 0);
#else
lua_pushboolean(L, 1);
#endif
return 1;
WHOA_UNIMPLEMENTED(0);
}
int32_t Script_RegisterCVar(lua_State* L) {