Workaround
This commit is contained in:
parent
728c308835
commit
50a1a35f7f
@ -1434,11 +1434,15 @@ void loadLibCg()
|
|||||||
{
|
{
|
||||||
void *handle = dlopen("./libCg.so", RTLD_NOW);
|
void *handle = dlopen("./libCg.so", RTLD_NOW);
|
||||||
if (!handle)
|
if (!handle)
|
||||||
|
{
|
||||||
|
handle = dlopen("/app/lib32/libCg2.so", RTLD_NOW);
|
||||||
|
if (!handle)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Error: Unable to load library libCg.so %s\n", dlerror());
|
fprintf(stderr, "Error: Unable to load library libCg.so %s\n", dlerror());
|
||||||
fprintf(stderr, "Error: libCg.so version 2.0 is needed to compile the shaders in the game's folder.\n");
|
fprintf(stderr, "Error: libCg.so version 2.0 is needed to compile the shaders in the game's folder.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
char libCgVersion[9];
|
char libCgVersion[9];
|
||||||
FILE *libF = fopen("./libCg.so", "r");
|
FILE *libF = fopen("./libCg.so", "r");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user