Fórum Ubuntu Linux - PT
Suporte Técnico => Aplicativos => Tópico iniciado por: biohazard em 11 de Setembro de 2005, 16:32
-
bom naum tem um topico de jogos !
Alguem consegue usa o Cheating-Death no linux ??
qua usei um monte de tutorais e nunca consegui faze ele roda !
Alguem conseguiu ? pra pode explcia como conseguiu .
-
To eu aki , tentando de novo , agora com o tutorial da United Admins
http://forums.unitedadmins.com/index.php?showtopic=28970
meu 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("C:\\Cheating-Death\\4.32.0\\cd.dll");
return (*p_GetCommandLineA)();
}
Compilei com gcc -shared cdlinux.c -o cdlinux.so
Meu cslinux.sh
#!/bin/sh
cd /home/biohazard/TransGaming_Drive/Valve/Steam
export LD_PRELOAD="/lib/libdl.so.2 /usr/lib/transgaming_cedega/winex/lib/libkernel32.so /lib/cdlinux.so"
export LD_LIBRARY_PATH="/usr/lib/transgaming_cedega/winex/lib"
cedega steam.exe -- -applaunch 10 $*
Dei um chmod +x cslinux.sh
Qaundo vo executa
./cslinux.sh
da isso
biohazard@autilio:~$ ./cslinux.sh
/bin/sh: relocation error: /usr/lib/transgaming_cedega/winex/lib/libntdll.so: undefined symbol: __memory_layout_override