android: virtual gamepad rumble power wasn't set at app startup
Make sure emu.cfg is loaded before setting rumble power. Issue #1640
This commit is contained in:
parent
64d7199107
commit
0e97f97bb7
|
@ -87,10 +87,7 @@ public abstract class BaseGLActivity extends Activity implements ActivityCompat.
|
||||||
}
|
}
|
||||||
prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
|
||||||
Emulator app = (Emulator)getApplicationContext();
|
|
||||||
app.getConfigurationPrefs();
|
|
||||||
Emulator.setCurrentActivity(this);
|
Emulator.setCurrentActivity(this);
|
||||||
|
|
||||||
OuyaController.init(this);
|
OuyaController.init(this);
|
||||||
new HttpClient().nativeInit();
|
new HttpClient().nativeInit();
|
||||||
|
|
||||||
|
@ -129,6 +126,8 @@ public abstract class BaseGLActivity extends Activity implements ActivityCompat.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Log.i("flycast", "Environment initialized");
|
Log.i("flycast", "Environment initialized");
|
||||||
|
Emulator app = (Emulator)getApplicationContext();
|
||||||
|
app.getConfigurationPrefs();
|
||||||
storage = new AndroidStorage(this);
|
storage = new AndroidStorage(this);
|
||||||
setStorageDirectories();
|
setStorageDirectories();
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,8 @@ import java.nio.charset.Charset;
|
||||||
public class HttpClient {
|
public class HttpClient {
|
||||||
private CloseableHttpClient httpClient;
|
private CloseableHttpClient httpClient;
|
||||||
|
|
||||||
|
static { System.loadLibrary("flycast"); }
|
||||||
|
|
||||||
// Called from native code
|
// Called from native code
|
||||||
public int openUrl(String url_string, byte[][] content, String[] contentType)
|
public int openUrl(String url_string, byte[][] content, String[] contentType)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue