|
楼主 |
发表于 2003-9-12 18:32:49
|
显示全部楼层
按照FlawZero的贴子,在winex3下也可以用Cheating-Death.
现将cdlinux.c 与cdlinux.sh的源码贴下来,供大家参考!
cdlinux.c
#include<dlfcn.h>
char* (*p_GetCommandLineA)()=0;
int times=0;
char *GetCommandLineA() {
if(!p_GetCommandLineA)
p_GetCommandLineA=dlsym((void*)-1,"GetCommandLineA");
times++;
if(times==6)
LoadLibraryA("G:\\mnt\\Games\\Sierra\\Counter-Strike\\cd.dll");
return (*p_GetCommandLineA)();
}
cdlinux.sh
#!/bin/sh
export LD_PRELOAD="/lib/libdl.so.2 /usr/lib/transgaming_winex3/winex/lib/libkernel32.so \
/mnt/Games/Sierra/Counter-Strike/cdlinux.so"
export LD_LIBRARY_PATH="/usr/lib/transgaming_winex3/winex/lib/"
cd /mnt/Games/Sierra/Counter-Strike/
winex3 cstrike.exe -- -console |
|