mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Fix history duplication by removing trailing white space characters from submitted commands in console. * Fix out of range exception caused by caching svConVar.size() in CConsole::BuildSummary while we are modifying it. * Fixed memory leak caused by extraneous Strdup calls in CConsole. * Renamed variables and structure members, static vars in id3dx.cpp are not prefixed with s_, IBrowser_Config is now m_BrowserConfig. * Performed code cleanup in id3dx.cpp.
39 lines
692 B
C++
39 lines
692 B
C++
#pragma once
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// Internals
|
|
int Stricmp(const char* s1, const char* s2);
|
|
int Strnicmp(const char* s1, const char* s2, int n);
|
|
char* Strdup(const char* s);
|
|
void Strtrim(char* s);
|
|
|
|
enum class ImGuiStyle_t
|
|
{
|
|
NONE = -1,
|
|
DEFAULT,
|
|
LEGACY,
|
|
MODERN
|
|
};
|
|
|
|
class ImGuiConfig
|
|
{
|
|
public:
|
|
struct
|
|
{
|
|
int m_nBind0 = VK_OEM_3;
|
|
int m_nBind1 = VK_INSERT;
|
|
} m_ConsoleConfig;
|
|
|
|
struct
|
|
{
|
|
int m_nBind0 = VK_HOME;
|
|
int m_nBind1 = VK_F10;
|
|
} m_BrowserConfig;
|
|
|
|
void Load();
|
|
void Save();
|
|
ImGuiStyle_t InitStyle() const;
|
|
};
|
|
|
|
extern ImGuiConfig* g_pImGuiConfig;
|