2015-07-04 01:17:14 +00:00
|
|
|
#ifndef _B3_RESOURCE_PATH_H
|
2018-09-23 21:17:31 +00:00
|
|
|
#define _B3_RESOURCE_PATH_H
|
2015-07-04 01:17:14 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2018-10-09 04:27:08 +00:00
|
|
|
typedef bool (* PFN_FIND_FILE)(void* userPointer, const char* orgFileName, char* relativeFileName, int maxRelativeFileNameMaxLen);
|
|
|
|
|
2015-07-04 01:17:14 +00:00
|
|
|
class b3ResourcePath
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static int getExePath(char* path, int maxPathLenInBytes);
|
2018-10-09 04:27:08 +00:00
|
|
|
static int findResourcePath(const char* resourceName, char* resourcePathOut, int resourcePathMaxNumBytes, PFN_FIND_FILE findFile, void* userPointer=0);
|
2017-08-28 02:34:00 +00:00
|
|
|
static void setAdditionalSearchPath(const char* path);
|
2015-07-04 01:17:14 +00:00
|
|
|
};
|
|
|
|
#endif
|