mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 22:13:51 +00:00
Save trace file selector.
This commit is contained in:
parent
0de755124d
commit
e4c5e5c097
@ -16,6 +16,10 @@
|
|||||||
#include "TracyImGui.hpp"
|
#include "TracyImGui.hpp"
|
||||||
#include "TracyView.hpp"
|
#include "TracyView.hpp"
|
||||||
|
|
||||||
|
#ifdef TRACY_FILESELECTOR
|
||||||
|
# include "../nfd/nfd.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -757,6 +761,20 @@ void View::DrawConnection()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( ImGui::Button( "Save trace" ) )
|
||||||
|
{
|
||||||
|
#ifdef TRACY_FILESELECTOR
|
||||||
|
nfdchar_t* fn;
|
||||||
|
auto res = NFD_SaveDialog( "tracy", nullptr, &fn );
|
||||||
|
if( res == NFD_OKAY )
|
||||||
|
#else
|
||||||
|
const char* fn = "trace.tracy";
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user