Option for main() commandline parameters in ChangeAppSettings.sh, fixed UQM translation packs

This commit is contained in:
pelya
2010-11-12 15:17:14 +02:00
parent 3305fb1b9d
commit 62e8c34a88
7 changed files with 67 additions and 1054 deletions

View File

@@ -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();