2022-05-13 23:42:41 -04:00
|
|
|
#ifndef _B3_RESOURCE_PATH_H
|
2026-06-03 15:08:51 +01:00
|
|
|
#define _B3_RESOURCE_PATH_H
|
2022-05-13 23:42:41 -04:00
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2026-06-03 15:08:51 +01:00
|
|
|
typedef bool (* PFN_FIND_FILE)(void* userPointer, const char* orgFileName, char* relativeFileName, int maxRelativeFileNameMaxLen);
|
|
|
|
|
|
2022-05-13 23:42:41 -04:00
|
|
|
class b3ResourcePath
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
static int getExePath(char* path, int maxPathLenInBytes);
|
2026-06-03 15:08:51 +01:00
|
|
|
static int findResourcePath(const char* resourceName, char* resourcePathOut, int resourcePathMaxNumBytes, PFN_FIND_FILE findFile, void* userPointer=0);
|
|
|
|
|
static void setAdditionalSearchPath(const char* path);
|
2022-05-13 23:42:41 -04:00
|
|
|
};
|
|
|
|
|
#endif
|