fix various warning
add b3ResourcePath utility, to locate resources relative to executable
This commit is contained in:
13
examples/Utils/b3ResourcePath.h
Normal file
13
examples/Utils/b3ResourcePath.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef _B3_RESOURCE_PATH_H
|
||||
#define _B3_RESOURCE_PATH_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class b3ResourcePath
|
||||
{
|
||||
public:
|
||||
static int getExePath(char* path, int maxPathLenInBytes);
|
||||
static int findResourcePath(const char* sourceName, char* resourcePath, int maxResourcePathLenInBytes);
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user