Problèmes et questions sur les environnements graphiques et les applications.
Répondre

Jouer à Anomaly Warzone Earth

#1Messageil y a 7 ans

il y a un bogue fatal dont vous avez besoin pour compiler une partie spéciale du code

Copiez / Collez ceci dans un fichier test.c dans votre répertoire personnel
Https://pastebin.com/wZZwjV8n

#define _GNU_SOURCE
#include <dlfcn.h>
#include <semaphore.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
 
static int (*_realSemTimedWait)() = NULL;
 
int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout)
{
    if (abs_timeout->tv_nsec >= 1000000000)
    {
        //fprintf(stderr, "to: %lu:%lu\n", abs_timeout->tv_sec, abs_timeout->tv_nsec);
        ((struct timespec *)abs_timeout)->tv_nsec -= 1000000000;
        ((struct timespec *)abs_timeout)->tv_sec++;
    }
    _realSemTimedWait(sem, abs_timeout);
}
 
__attribute__((constructor)) int init(void)
{
    _realSemTimedWait = dlsym(RTLD_NEXT, "sem_timedwait");
}
Ensuite, tapez ceci dans le terminal

sudo gcc -m32 -o test.so test.c -ldl -shared -fPIC
Ensuite, mettez le fichier test.so dans votre répertoire de jeu installé dans ".steam / gnagnagnagna"

Enfin, mettez-le dans vos options de lancement du jeu

env LD_PRELOAD=./test.so %command%

Ou télécharger le ficher : http://xn--pp-oia.com/Hh08

wget http://âpp.com/dl/Hh08 -O test.so
Lancer votre jeu :D

Tuto de : https://forum.manjaro.org/t/play-anomal ... arth/20910
Répondre