Pinned release version strings.
2 * vim: set ts=4 sw=4 tw=99 noet :
3 * ======================================================
5 * Copyright (C) 2004-2009 AlliedModders LLC and authors.
7 * ======================================================
9 * This software is provided 'as-is', without any express or implied warranty.
10 * In no event will the authors be held liable for any damages arising from
11 * the use of this software.
13 * Permission is granted to anyone to use this software for any purpose,
14 * including commercial applications, and to alter it and redistribute it
15 * freely, subject to the following restrictions:
17 * 1. The origin of this software must not be misrepresented; you must not
18 * claim that you wrote the original software. If you use this software in a
19 * product, an acknowledgment in the product documentation would be
20 * appreciated but is not required.
21 * 2. Altered source versions must be plainly marked as such, and must not be
22 * misrepresented as being the original software.
23 * 3. This notice may not be removed or altered from any source distribution.
26 #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_H_
27 #define _INCLUDE_METAMOD_SOURCE_LOADER_H_
30 #define SH_SYS_WIN32 1
31 #define SH_SYS_LINUX 2
32 #define SH_SYS_APPLE 3
35 #define SH_XP_POSIX 10
36 #define SH_XP_WINAPI 20
40 #define SH_COMP_MSVC 2
43 #define WINDOWS_LEAN_AND_MEAN
46 #define PLATFORM_MAX_PATH MAX_PATH
47 #define SH_SYS SH_SYS_WIN32
48 #define SH_XP SH_XP_WINAPI
49 #define SH_COMP SH_COMP_MSVC
50 #define PATH_SEP_STR "\\"
51 #define PATH_SEP_CHAR '\\'
52 #define ALT_SEP_CHAR '/'
53 #elif defined __linux__
58 typedef void * HMODULE;
59 #define PLATFORM_MAX_PATH PATH_MAX
60 #define SH_SYS SH_SYS_LINUX
61 #define SH_XP SH_XP_POSIX
62 #define SH_COMP SH_COMP_GCC
63 #define PATH_SEP_STR "/"
64 #define PATH_SEP_CHAR '/'
65 #define ALT_SEP_CHAR '\\'
67 #error "OS detection failed"
70 #include "loader_bridge.h"
72 #define SH_PTRSIZE sizeof(void*)
76 MMBackend_Episode1 = 0,
77 MMBackend_DarkMessiah,
79 MMBackend_Episode2Valve,
86 mm_LoadMetamodLibrary(MetamodBackend backend, char *buffer, size_t maxlength);
89 mm_GetProcAddress(const char *name);
92 mm_UnloadMetamodLibrary();
95 mm_LogFatal(const char *message, ...);
100 extern MetamodBackend
101 mm_DetermineBackend(QueryValveInterface qvi, const char *game_name);
103 extern MetamodBackend mm_backend;
105 #endif /* _INCLUDE_METAMOD_SOURCE_LOADER_H_ */