'Relatized' the path passed to FileToKeyValues() native.

This eliminates the annoying warning in L4D:
***VPK: FindFile Attempting to use full path with VPK file!
This commit is contained in:
Scott Ehlert
2008-11-19 02:14:43 -06:00
parent 9ae456b9d1
commit 2acf1b08d5
2 changed files with 154 additions and 3 deletions
+3 -1
View File
@@ -54,6 +54,7 @@
#include <direct.h>
#define PLATFORM_LIB_EXT "dll"
#define PLATFORM_MAX_PATH MAX_PATH
#define PLATFORM_SEP_STR "\\"
#define PLATFORM_SEP_CHAR '\\'
#define PLATFORM_SEP_ALTCHAR '/'
#define PLATFORM_EXTERN_C extern "C" __declspec(dllexport)
@@ -68,8 +69,9 @@
#include <dirent.h>
#include <dlfcn.h>
#include <sys/stat.h>
#define PLATFORM_MAX_PATH PATH_MAX
#define PLATFORM_LIB_EXT "so"
#define PLATFORM_MAX_PATH PATH_MAX
#define PLATFORM_SEP_STR "/"
#define PLATFORM_SEP_CHAR '/'
#define PLATFORM_SEP_ALTCHAR '\\'
#define PLATFORM_EXTERN_C extern "C" __attribute__((visibility("default")))