Option for main() commandline parameters in ChangeAppSettings.sh, fixed UQM translation packs
This commit is contained in:
@@ -210,7 +210,7 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer {
|
||||
// Tweak video thread priority, if user selected big audio buffer
|
||||
if(Globals.AudioBufferConfig >= 2)
|
||||
Thread.currentThread().setPriority( (Thread.NORM_PRIORITY + Thread.MIN_PRIORITY) / 2 ); // Lower than normal
|
||||
nativeInit(); // Calls main() and never returns, hehe - we'll call eglSwapBuffers() from native code
|
||||
nativeInit(Globals.CommandLine); // Calls main() and never returns, hehe - we'll call eglSwapBuffers() from native code
|
||||
System.exit(0); // The main() returns here - I don't bother with deinit stuff, just terminate process
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer {
|
||||
};
|
||||
|
||||
private native void nativeInitJavaCallbacks();
|
||||
private native void nativeInit();
|
||||
private native void nativeInit(String CommandLine);
|
||||
private native void nativeResize(int w, int h);
|
||||
private native void nativeDone();
|
||||
private native void nativeGlContextLost();
|
||||
|
||||
Reference in New Issue
Block a user