r5sdk/r5dev/thirdparty/imgui/include/imgui_utility.h
Kawe Mazidjatari d3b2893cdc Change ImGui config file path and use engine's FileSystem API
'ImGuiConfig::Load()' was loading from the new path, however 'ImGuiConfig::Save()' was not. Defined path as constant expression to avoid this problem in the future. Also loading the files through the engine's API from now on.
2022-11-24 10:45:42 +01:00

42 lines
790 B
C++

#pragma once
constexpr char IMGUI_BIND_PATH[] = "cfg/imgui/";
constexpr char IMGUI_BIND_FILE[] = "bind.json";
/////////////////////////////////////////////////////////////////////////////
// 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;