Android: Hook up settings interface

This commit is contained in:
Connor McLaughlin
2020-07-11 03:29:15 +10:00
parent 79841d13e2
commit f9cbc3acfb
12 changed files with 334 additions and 42 deletions

View File

@ -1,5 +1,6 @@
package com.github.stenzek.duckstation;
import android.content.Context;
import android.view.Surface;
public class AndroidHostInterface
@ -10,7 +11,7 @@ public class AndroidHostInterface
System.loadLibrary("duckstation-native");
}
static public native AndroidHostInterface create();
static public native AndroidHostInterface create(Context context);
public AndroidHostInterface(long nativePointer)
{

View File

@ -142,7 +142,7 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
}
});
mHostInterface = AndroidHostInterface.create();
mHostInterface = AndroidHostInterface.create(this);
if (mHostInterface == null)
throw new InstantiationError("Failed to create host interface");