Skip to content

Instantly share code, notes, and snippets.

@shkhln
Last active February 29, 2020 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shkhln/3f4756770182d406b0a9968509f6711e to your computer and use it in GitHub Desktop.
Save shkhln/3f4756770182d406b0a9968509f6711e to your computer and use it in GitHub Desktop.
#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