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:
parent
fadadd2d92
commit
08a498aaee
@ -167,6 +167,9 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\oslink.h">
|
RelativePath="..\oslink.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\resource.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\sourcemm.h">
|
RelativePath="..\sourcemm.h">
|
||||||
</File>
|
</File>
|
||||||
|
@ -280,8 +280,20 @@ SMM_API void *CreateInterface(const char *iface, int *ret)
|
|||||||
FILE *fp = fopen(temp_path, "rt");
|
FILE *fp = fopen(temp_path, "rt");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
{
|
{
|
||||||
Error("Unable to open gameinfo.txt! Metamod cannot load.\n");
|
/* Do not error out here! It's possible the mod exists in the root directory, i.e.
|
||||||
return NULL;
|
* 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 buffer[255];
|
||||||
char key[128], val[128];
|
char key[128], val[128];
|
||||||
|
@ -34,12 +34,12 @@
|
|||||||
* increase vers_release when bug fix releases are made
|
* increase vers_release when bug fix releases are made
|
||||||
* never increase major
|
* never increase major
|
||||||
*/
|
*/
|
||||||
#define SOURCEMM_VERSION "1.3a"
|
#define SOURCEMM_VERSION "1.3b"
|
||||||
#define SOURCEMM_DATE __DATE__
|
#define SOURCEMM_DATE __DATE__
|
||||||
#define SM_MAJOR_VERSION 1 //never need to increase this
|
#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_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_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.
|
//We need a good CServerGameDLL version to work properly. We support these inclusively.
|
||||||
#define MIN_GAMEDLL_VERSION 3
|
#define MIN_GAMEDLL_VERSION 3
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
// Microsoft Visual C++ generated resource script.
|
// Microsoft Visual C++ generated resource script.
|
||||||
//
|
//
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
#define APSTUDIO_READONLY_SYMBOLS
|
#define APSTUDIO_READONLY_SYMBOLS
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
@ -25,8 +27,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 1,3,0,0
|
FILEVERSION 1,3,0,2
|
||||||
PRODUCTVERSION 1,3,0,0
|
PRODUCTVERSION 1,3,0,2
|
||||||
FILEFLAGSMASK 0x17L
|
FILEFLAGSMASK 0x17L
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
@ -43,12 +45,12 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "Comments", "Metamod: Source"
|
VALUE "Comments", "Metamod: Source"
|
||||||
VALUE "FileDescription", "Metamod: Source"
|
VALUE "FileDescription", "Metamod: Source"
|
||||||
VALUE "FileVersion", "1.3"
|
VALUE "FileVersion", "1.3b"
|
||||||
VALUE "InternalName", "sourcemm"
|
VALUE "InternalName", "sourcemm"
|
||||||
VALUE "LegalCopyright", "Copyright (c) 2004-2006, Metamod: Source Development Team"
|
VALUE "LegalCopyright", "Copyright (c) 2004-2006, Metamod: Source Development Team"
|
||||||
VALUE "OriginalFilename", "server.dll"
|
VALUE "OriginalFilename", "server.dll"
|
||||||
VALUE "ProductName", "Metamod: Source"
|
VALUE "ProductName", "Metamod: Source"
|
||||||
VALUE "ProductVersion", "1.3"
|
VALUE "ProductVersion", "1.3b"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
@ -97,3 +99,4 @@ END
|
|||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#endif // not APSTUDIO_INVOKED
|
#endif // not APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user