1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-01 13:24:25 +01:00

added basic compatibility for darkmessiah. note that it will crash from engine diffs!

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40308
This commit is contained in:
David Anderson 2006-10-25 20:35:29 +00:00
parent fadadd2d92
commit 08a498aaee
4 changed files with 26 additions and 8 deletions

View File

@ -167,6 +167,9 @@
<File
RelativePath="..\oslink.h">
</File>
<File
RelativePath="..\resource.h">
</File>
<File
RelativePath="..\sourcemm.h">
</File>

View File

@ -280,9 +280,21 @@ SMM_API void *CreateInterface(const char *iface, int *ret)
FILE *fp = fopen(temp_path, "rt");
if (!fp)
{
/* Do not error out here! It's possible the mod exists in the root directory, i.e.
* Dark Messiah. Let's check that just in case!
*/
g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s", curpath);
g_ModPath.assign(temp_path);
g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s", g_ModPath.c_str(), "gameinfo.txt");
fp = fopen(temp_path, "rt");
if (!fp)
{
/* Okay, we have to concede here. */
Error("Unable to open gameinfo.txt! Metamod cannot load.\n");
return NULL;
}
}
char buffer[255];
char key[128], val[128];
size_t len = 0;

View File

@ -34,12 +34,12 @@
* increase vers_release when bug fix releases are made
* never increase major
*/
#define SOURCEMM_VERSION "1.3a"
#define SOURCEMM_VERSION "1.3b"
#define SOURCEMM_DATE __DATE__
#define SM_MAJOR_VERSION 1 //never need to increase this
#define SM_VERS_API_MAJOR 1 //increase this on a breaking change
#define SM_VERS_API_MINOR 4 //increase this on a non-breaking API change
#define SM_VERS_RELEASE 4 //increase this on a bug-fix release.
#define SM_VERS_RELEASE 5 //increase this on a bug-fix release.
//We need a good CServerGameDLL version to work properly. We support these inclusively.
#define MIN_GAMEDLL_VERSION 3

View File

@ -1,5 +1,7 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
@ -25,8 +27,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,0,0
PRODUCTVERSION 1,3,0,0
FILEVERSION 1,3,0,2
PRODUCTVERSION 1,3,0,2
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -43,12 +45,12 @@ BEGIN
BEGIN
VALUE "Comments", "Metamod: Source"
VALUE "FileDescription", "Metamod: Source"
VALUE "FileVersion", "1.3"
VALUE "FileVersion", "1.3b"
VALUE "InternalName", "sourcemm"
VALUE "LegalCopyright", "Copyright (c) 2004-2006, Metamod: Source Development Team"
VALUE "OriginalFilename", "server.dll"
VALUE "ProductName", "Metamod: Source"
VALUE "ProductVersion", "1.3"
VALUE "ProductVersion", "1.3b"
END
END
BLOCK "VarFileInfo"
@ -97,3 +99,4 @@ END
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED