mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Revert "(Android) reload cores path every lauch"
This reverts commit 1841455462be12a7ed423f3b426333ce67852664. This commit was breaking Android builds on the buildbot.
This commit is contained in:
parent
41f40acfc4
commit
7e8163c34e
@ -5,6 +5,7 @@ import com.retroarch.browser.retroactivity.RetroActivityFuture;
|
|||||||
import com.retroarch.browser.retroactivity.RetroActivityPast;
|
import com.retroarch.browser.retroactivity.RetroActivityPast;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.SharedPreferences;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.media.AudioManager;
|
import android.media.AudioManager;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
@ -74,6 +75,7 @@ int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE = 0;
|
|||||||
}
|
}
|
||||||
|
|
||||||
UserPreferences.updateConfigFile(this);
|
UserPreferences.updateConfigFile(this);
|
||||||
|
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
Intent retro;
|
Intent retro;
|
||||||
|
|
||||||
if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB))
|
if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB))
|
||||||
@ -89,7 +91,7 @@ int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE = 0;
|
|||||||
startRetroActivity(
|
startRetroActivity(
|
||||||
retro,
|
retro,
|
||||||
null,
|
null,
|
||||||
(getApplicationInfo().dataDir + "/cores/"),
|
prefs.getString("libretro_path", getApplicationInfo().dataDir + "/cores/"),
|
||||||
UserPreferences.getDefaultConfigPath(this),
|
UserPreferences.getDefaultConfigPath(this),
|
||||||
Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD),
|
Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD),
|
||||||
getApplicationInfo().dataDir,
|
getApplicationInfo().dataDir,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user