Android: Hook up settings interface
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user