mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add trace load failure exception.
This commit is contained in:
parent
d64307be91
commit
5062bef69a
@ -1,6 +1,8 @@
|
||||
#ifndef __TRACYBADVERSION_HPP__
|
||||
#define __TRACYBADVERSION_HPP__
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "../public/common/TracyForceInline.hpp"
|
||||
|
||||
struct ImFont;
|
||||
@ -16,11 +18,13 @@ struct BadVersionState
|
||||
BadFile,
|
||||
ReadError,
|
||||
UnsupportedVersion,
|
||||
LegacyVersion
|
||||
LegacyVersion,
|
||||
LoadFailure
|
||||
};
|
||||
|
||||
State state = Ok;
|
||||
int version = 0;
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
namespace detail
|
||||
|
@ -64,6 +64,12 @@ struct LegacyVersion : public std::exception
|
||||
int version;
|
||||
};
|
||||
|
||||
struct LoadFailure : public std::exception
|
||||
{
|
||||
LoadFailure( const char* msg ) : msg( msg ) {}
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
struct LoadProgress
|
||||
{
|
||||
enum Stage
|
||||
|
Loading…
Reference in New Issue
Block a user