Last active
February 29, 2020 10:38
-
-
Save shkhln/3f4756770182d406b0a9968509f6711e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <assert.h> | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <pthread.h> | |
// pkg install linux-c7-devtools | |
// /compat/linux/bin/cc --sysroot=/compat/linux -m64 -std=c99 -Wall -ldl -pthread -fPIC -shared -o fmod_workaround.so fmod_workaround.c | |
// env LD_PRELOAD=fmod_workaround.so LD_LIBRARY_PATH=<fmod_workaround.so dir> ./PillarsOfEternity | |
int pthread_attr_setschedparam(pthread_attr_t* attr, const struct sched_param* param) { | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment