From c92715a6c018f0f8475f165c501cc5a08511c4a7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 30 Sep 2017 14:32:30 +0200 Subject: [PATCH] Open file dialog. --- standalone/src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/standalone/src/main.cpp b/standalone/src/main.cpp index 6ff7ef67..3045f695 100755 --- a/standalone/src/main.cpp +++ b/standalone/src/main.cpp @@ -4,6 +4,7 @@ #include #include #include +#include "../nfd/nfd.h" #include "../../server/TracyView.hpp" @@ -61,6 +62,16 @@ int main(int, char**) { view = std::make_unique( addr ); } + ImGui::Separator(); + if( ImGui::Button( "Open saved trace" ) ) + { + nfdchar_t* fn; + auto res = NFD_OpenDialog( "tracy", nullptr, &fn ); + if( res == NFD_OKAY ) + { + + } + } ImGui::End(); } else