mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +00:00
Save trace file selector.
This commit is contained in:
parent
0de755124d
commit
e4c5e5c097
@ -16,6 +16,10 @@
|
||||
#include "TracyImGui.hpp"
|
||||
#include "TracyView.hpp"
|
||||
|
||||
#ifdef TRACY_FILESELECTOR
|
||||
# include "../nfd/nfd.h"
|
||||
#endif
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user