mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Quick changes...
This commit is contained in:
parent
7710ead988
commit
f95f15a995
@ -15,7 +15,7 @@ EXTRA_INCLUDEDIRS = -Iextra/include
|
|||||||
EXTRA_FLAGS = -Dstrcmpi=strcasecmp
|
EXTRA_FLAGS = -Dstrcmpi=strcasecmp
|
||||||
|
|
||||||
SDKTOP=../hlsdk
|
SDKTOP=../hlsdk
|
||||||
METADIR=../metamod/metamod
|
METADIR=../metamod
|
||||||
|
|
||||||
|
|
||||||
SDKSRC=$(SDKTOP)/SourceCode
|
SDKSRC=$(SDKTOP)/SourceCode
|
||||||
@ -29,7 +29,7 @@ else
|
|||||||
OS=LINUX
|
OS=LINUX
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC_LINUX=gcc
|
CC_LINUX=gcc-2.95
|
||||||
ifeq "$(OS)" "WIN32"
|
ifeq "$(OS)" "WIN32"
|
||||||
CC_WIN32=gcc
|
CC_WIN32=gcc
|
||||||
LD_WINDLL=dllwrap
|
LD_WINDLL=dllwrap
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
*
|
*
|
||||||
* PM: Whole file changed
|
* PM: Whole file changed
|
||||||
*/
|
*/
|
||||||
|
#define LINUX
|
||||||
#if defined LINUX
|
#if defined LINUX
|
||||||
#include <sclinux.h>
|
#include <sclinux.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -283,7 +283,11 @@ void UTIL_MakeNewLogFile()
|
|||||||
tm *curTime = localtime(&td);
|
tm *curTime = localtime(&td);
|
||||||
|
|
||||||
// create dir if not existing
|
// create dir if not existing
|
||||||
|
#ifdef __linux
|
||||||
|
mkdir(build_pathname("%s", g_log_dir.str()), 0700);
|
||||||
|
#else
|
||||||
mkdir(build_pathname("%s", g_log_dir.str()));
|
mkdir(build_pathname("%s", g_log_dir.str()));
|
||||||
|
#endif
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (true)
|
while (true)
|
||||||
@ -325,4 +329,4 @@ void UTIL_Log(const char *fmt, ...)
|
|||||||
fprintf(pF, "L %s: %s\n", date, msg);
|
fprintf(pF, "L %s: %s\n", date, msg);
|
||||||
fclose(pF);
|
fclose(pF);
|
||||||
print_srvconsole("L %s: %s\n", date, msg);
|
print_srvconsole("L %s: %s\n", date, msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user