mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-14 23:28:52 -04:00
setupBridgeEGL
This commit is contained in:
parent
332f8c300d
commit
b25e8ebf34
@ -3,6 +3,7 @@ package net.kdt.pojavlaunch;
|
|||||||
import android.system.*;
|
import android.system.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
|
||||||
|
// This clads should be named as 'LoadMe' as original
|
||||||
public class BinaryExecutor
|
public class BinaryExecutor
|
||||||
{
|
{
|
||||||
private BinaryExecutor() {}
|
private BinaryExecutor() {}
|
||||||
|
@ -689,6 +689,11 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
|||||||
// Does it required anymore?
|
// Does it required anymore?
|
||||||
// AndroidDisplay.windowWidth += navBarHeight;
|
// AndroidDisplay.windowWidth += navBarHeight;
|
||||||
|
|
||||||
|
if (LAUNCH_TYPE != LTYPE_PROCESS) {
|
||||||
|
BinaryExecutor.setupBridgeEGL();
|
||||||
|
egl10.eglMakeCurrent(theEgl.eglGetCurrentDisplay(), EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
|
||||||
|
}
|
||||||
|
|
||||||
new Thread(new Runnable(){
|
new Thread(new Runnable(){
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -1095,7 +1100,7 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
|
|||||||
if (exitCode != 0) {
|
if (exitCode != 0) {
|
||||||
Tools.showError(this, new ErrnoException("java", exitCode), false);
|
Tools.showError(this, new ErrnoException("java", exitCode), false);
|
||||||
}
|
}
|
||||||
} else { // Type Invocation or BinaryExec
|
} else { // Type Invocation
|
||||||
final FileDescriptor logFile = BinaryExecutor.redirectStdio();
|
final FileDescriptor logFile = BinaryExecutor.redirectStdio();
|
||||||
|
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user