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