From bc886e4287adcc2e2205f354c00bcb454c519215 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 31 Aug 2018 19:38:05 +0200 Subject: [PATCH] Save path is not persistent. --- profiler/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index acc65214..e4e0c9cd 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -5,6 +5,7 @@ #include "imgui_impl_opengl3.h" #include #include +#include #include #include #include @@ -103,7 +104,8 @@ int main( int argc, char** argv ) IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); - io.IniFilename = tracy::GetSavePath( "imgui.ini" ); + std::string iniFileName = tracy::GetSavePath( "imgui.ini" ); + io.IniFilename = iniFileName.c_str(); io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; ImGui_ImplGlfw_InitForOpenGL( window, true );