Skip to content

Instantly share code, notes, and snippets.

@shkhln
Last active Feb 29, 2020
Embed
What would you like to do?
#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