2021-06-14 17:56:18 -07:00
|
|
|
#pragma once
|
|
|
|
#include "imgui.h"
|
|
|
|
|
2021-06-16 16:43:03 -07:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Initialization
|
2021-06-14 17:56:18 -07:00
|
|
|
void PrintDXAddress();
|
|
|
|
void InstallDXHooks();
|
|
|
|
void RemoveDXHooks();
|
|
|
|
void ShowGameConsole(bool* p_open);
|
|
|
|
|
2021-06-16 16:43:03 -07:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Utility
|
2021-06-14 17:56:18 -07:00
|
|
|
static int Stricmp(const char* s1, const char* s2) { int d; while ((d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; }return d; }
|
|
|
|
static int Strnicmp(const char* s1, const char* s2, int n) { int d = 0; while (n > 0 && (d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; n--; }return d; }
|
|
|
|
static char* Strdup(const char* s) { IM_ASSERT(s); size_t len = strlen(s) + 1; void* buf = malloc(len); IM_ASSERT(buf); if (buf != NULL) { return (char*)memcpy(buf, (const void*)s, len); } }
|
2021-06-16 16:43:03 -07:00
|
|
|
static void Strtrim(char* s) { char* str_end = s + strlen(s); while (str_end > s && str_end[-1] == ' ') str_end--; *str_end = 0; }
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Globals
|
|
|
|
inline ImVector<char*> Items;
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|