mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Assert on invalid file names.
This commit is contained in:
parent
27965e8690
commit
c7e32a16ec
@ -87,6 +87,8 @@ static void GetConfigDirectory( char* buf, size_t& sz )
|
|||||||
|
|
||||||
const char* GetSavePath( const char* file )
|
const char* GetSavePath( const char* file )
|
||||||
{
|
{
|
||||||
|
assert( file && *file );
|
||||||
|
|
||||||
enum { Pool = 8 };
|
enum { Pool = 8 };
|
||||||
enum { MaxPath = 512 };
|
enum { MaxPath = 512 };
|
||||||
static char bufpool[Pool][MaxPath];
|
static char bufpool[Pool][MaxPath];
|
||||||
@ -112,6 +114,9 @@ const char* GetSavePath( const char* file )
|
|||||||
|
|
||||||
const char* GetSavePath( const char* program, uint64_t time, const char* file, bool create )
|
const char* GetSavePath( const char* program, uint64_t time, const char* file, bool create )
|
||||||
{
|
{
|
||||||
|
assert( file && *file );
|
||||||
|
assert( program && *program );
|
||||||
|
|
||||||
enum { Pool = 8 };
|
enum { Pool = 8 };
|
||||||
enum { MaxPath = 512 };
|
enum { MaxPath = 512 };
|
||||||
static char bufpool[Pool][MaxPath];
|
static char bufpool[Pool][MaxPath];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user