mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Open file dialog.
This commit is contained in:
parent
7284d00965
commit
c92715a6c0
@ -4,6 +4,7 @@
|
||||
#include <GL/gl3w.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <memory>
|
||||
#include "../nfd/nfd.h"
|
||||
|
||||
#include "../../server/TracyView.hpp"
|
||||
|
||||
@ -61,6 +62,16 @@ int main(int, char**)
|
||||
{
|
||||
view = std::make_unique<tracy::View>( 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
|
||||
|
Loading…
Reference in New Issue
Block a user