mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-04-25 20:30:19 +00:00
portable mode enabled in runtime
This commit is contained in:
14
src/common/portable.c
Normal file
14
src/common/portable.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <io.h>
|
||||
|
||||
int
|
||||
portable_mode ()
|
||||
{
|
||||
if ((_access( "portable-mode", 0 )) != -1)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
1
src/common/portable.h
Normal file
1
src/common/portable.h
Normal file
@@ -0,0 +1 @@
|
||||
int portable_mode ();
|
||||
@@ -1,5 +1,4 @@
|
||||
#X64 = YES
|
||||
#PORTABLE = YES
|
||||
IPV6 = YES
|
||||
|
||||
CC = cl
|
||||
@@ -65,10 +64,6 @@ PYTHONOUTPUT = xcpython.dll
|
||||
TCLLIB = tcl85
|
||||
TCLOUTPUT = xctcl.dll
|
||||
|
||||
!ifdef PORTABLE
|
||||
CFLAGS = $(CFLAGS) -DPORTABLE_BUILD
|
||||
!endif
|
||||
|
||||
!ifdef IPV6
|
||||
CFLAGS = $(CFLAGS) -DUSE_IPV6
|
||||
LIBS = $(LIBS) ws2_32.lib
|
||||
@@ -90,6 +85,7 @@ notify.obj \
|
||||
outbound.obj \
|
||||
plugin.obj \
|
||||
plugin-timer.obj \
|
||||
portable.obj \
|
||||
proto-irc.obj \
|
||||
server.obj \
|
||||
servlist.obj \
|
||||
|
||||
Reference in New Issue
Block a user