Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
GLideN64 not starting on android x86 #604
GLideN64 does not seem to be starting up in android x86. I have tried debugging the issue and it's baffling me. Here is the log output when the plugin fails to start, it does not seem to be crashing:
07-05 00:11:04.029: I/GameSurface(11018): Creating GL context
I have been trying to debug this issue and some strange things are happening.
Adding any log entry to void OGLRender::_initData() in OpenGL.cpp after the for loop seems to fix the issue. For example, I have this:
And it seems to run normally after adding that.
Thinking that it was some sort of timing issue, I tried replacing the LOG entry with a usleep ranging from 1us to 1 sec and it did not allow the GLideN64 to work correctly. I have no idea why adding this log entry works. By the way, I have also set the log level to verbose by modifying Log.h to have this line:
define LOG_LEVEL LOG_VERBOSE
This maybe nothing, but it seems like the "RomOpen" implementation in the plugin should be returning a non zero integer for the call to be successful, but it seems like your implementation is returning void?
In the core I can see that for everything to startup correctly, it expects a non-zero value for the RomOpen method. But I'm not seeing a RomOpen method with a return type of integer, only one with a void return.
Ok, that did the trick. I got rid of the logging and modified the following and it works in android x86.
In ZilmarGFX_1_3.h changed:
In CommonPluginAPI.cpp changed:
The latest Mupen64plus AE should have the fix included. Here is the link: