mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 23:07:04 +00:00
[client] imgui: put imgui.ini in $XDG_CONFIG_DIR/looking-glass
This commit is contained in:
parent
6109067275
commit
7c3c68b84b
@ -795,6 +795,8 @@ static int lg_run(void)
|
|||||||
g_state.io = igGetIO();
|
g_state.io = igGetIO();
|
||||||
g_state.style = igGetStyle();
|
g_state.style = igGetStyle();
|
||||||
|
|
||||||
|
alloc_sprintf(&g_state.imGuiIni, "%s/imgui.ini", lgConfigDir());
|
||||||
|
g_state.io->IniFilename = g_state.imGuiIni;
|
||||||
g_state.io->BackendFlags |= ImGuiBackendFlags_HasMouseCursors;
|
g_state.io->BackendFlags |= ImGuiBackendFlags_HasMouseCursors;
|
||||||
|
|
||||||
g_state.windowScale = 1.0;
|
g_state.windowScale = 1.0;
|
||||||
@ -1156,6 +1158,8 @@ static void lg_shutdown(void)
|
|||||||
g_state.overlays = NULL;
|
g_state.overlays = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(g_state.imGuiIni);
|
||||||
|
|
||||||
if (g_state.frameEvent)
|
if (g_state.frameEvent)
|
||||||
{
|
{
|
||||||
lgFreeEvent(g_state.frameEvent);
|
lgFreeEvent(g_state.frameEvent);
|
||||||
|
@ -57,6 +57,7 @@ struct AppState
|
|||||||
ImGuiMouseCursor cursorLast;
|
ImGuiMouseCursor cursorLast;
|
||||||
LGEvent * overlayRenderEvent;
|
LGEvent * overlayRenderEvent;
|
||||||
bool overlayMustWait;
|
bool overlayMustWait;
|
||||||
|
char * imGuiIni;
|
||||||
|
|
||||||
bool alertShow;
|
bool alertShow;
|
||||||
char * alertMessage;
|
char * alertMessage;
|
||||||
|
Loading…
Reference in New Issue
Block a user