2022-10-05 20:50:17 +00:00
|
|
|
#ifndef __TRACYFILESELECTOR_HPP__
|
|
|
|
#define __TRACYFILESELECTOR_HPP__
|
|
|
|
|
2022-10-06 15:35:07 +00:00
|
|
|
#include <functional>
|
2022-10-05 20:50:17 +00:00
|
|
|
|
|
|
|
namespace tracy::Fileselector
|
|
|
|
{
|
|
|
|
|
|
|
|
void Init();
|
|
|
|
void Shutdown();
|
|
|
|
|
2022-10-29 22:31:15 +00:00
|
|
|
// Will return false if file selector cannot be presented to the user.
|
|
|
|
bool OpenFile( const char* ext, const char* desc, std::function<void(const char*)> callback );
|
|
|
|
bool SaveFile( const char* ext, const char* desc, std::function<void(const char*)> callback );
|
2022-10-05 20:50:17 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|