add access to location where findfile() found the file
"findfilelocation" contains the location, where the file was found. Not a nice solution, but nice enough :) Note: if the location is FFL_WORKDIR, the existence of the file has not actually been checked yet.
This commit is contained in:
@@ -953,6 +953,8 @@ extern bool createdir(const char *path);
|
||||
extern size_t fixpackagedir(char *dir);
|
||||
extern void sethomedir(const char *dir);
|
||||
extern void addpackagedir(const char *dir);
|
||||
extern int findfilelocation;
|
||||
enum { FFL_WORKDIR = -1, FFL_HOME = 0 };
|
||||
extern const char *findfile(const char *filename, const char *mode);
|
||||
extern int getfilesize(const char *filename);
|
||||
extern stream *openrawfile(const char *filename, const char *mode);
|
||||
|
||||
Reference in New Issue
Block a user