loader/loader.h
changeset 579 be04fd67923b
parent 557 0a8ad2b12708
child 587 3cbfdd9088d3
     1.1 --- a/loader/loader.h	Wed Nov 19 01:17:48 2008 -0600
     1.2 +++ b/loader/loader.h	Sun Nov 23 21:21:49 2008 -0600
     1.3 @@ -9,17 +9,26 @@
     1.4  #include <windows.h>
     1.5  #define PLATFORM_MAX_PATH	MAX_PATH
     1.6  #define SH_COMP				SH_COMP_MSVC
     1.7 +#define	PATH_SEP_STR		"\\"
     1.8 +#define PATH_SEP_CHAR		'\\'
     1.9 +#define ALT_SEP_CHAR		'/'
    1.10  #elif defined __linux__
    1.11  #include <dlfcn.h>
    1.12  #include <dirent.h>
    1.13  #include <stdint.h>
    1.14 +#include <unistd.h>
    1.15  typedef void *	HMODULE;
    1.16  #define PLATFORM_MAX_PATH	PATH_MAX
    1.17  #define SH_COMP				SH_COMP_GCC
    1.18 +#define	PATH_SEP_STR		"/"
    1.19 +#define PATH_SEP_CHAR		'/'
    1.20 +#define ALT_SEP_CHAR		'\\'
    1.21  #else
    1.22  #error "OS detection failed"
    1.23  #endif
    1.24  
    1.25 +#include "loader_bridge.h"
    1.26 +
    1.27  #define SH_PTRSIZE sizeof(void*)
    1.28  
    1.29  enum MetamodBackend
    1.30 @@ -42,5 +51,8 @@
    1.31  extern void
    1.32  mm_LogFatal(const char *message, ...);
    1.33  
    1.34 +extern MetamodBackend
    1.35 +mm_DetermineBackend(QueryValveInterface qvi);
    1.36 +
    1.37  #endif /* _INCLUDE_METAMOD_SOURCE_LOADER_H_ */
    1.38