X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2F3dengfx%2Fsrc%2Fcommon%2Flocator.h;fp=src%2F3dengfx%2Fsrc%2Fcommon%2Flocator.h;h=2dfc3225d2f48fa43a0c638da0025e433f424f97;hb=6e23259dbabaeb1711a2a5ca25b9cb421f693759;hp=0000000000000000000000000000000000000000;hpb=fe068fa879814784c45e0cb2e65dac489e8f5594;p=summerhack diff --git a/src/3dengfx/src/common/locator.h b/src/3dengfx/src/common/locator.h new file mode 100644 index 0000000..2dfc322 --- /dev/null +++ b/src/3dengfx/src/common/locator.h @@ -0,0 +1,27 @@ +/* +This is a small cross-platform resource file locator library. +Author: John Tsiombikas 2004 + +This library is public domain, you are free to do whatever you like with it, +NO WARANTY whatsoever is provided with this library, use it at your own risk. +*/ + +#ifndef _LOCATOR_H_ +#define _LOCATOR_H_ + +enum loc_file_type { + LOC_FILE_CONFIG, + LOC_FILE_DATA +}; + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +const char *loc_get_path(const char *file, enum loc_file_type file_type); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _LOCATOR_H_ */