From 1841455462be12a7ed423f3b426333ce67852664 Mon Sep 17 00:00:00 2001 From: Aaahh Ahh Date: Sun, 25 Dec 2016 15:39:06 -0500 Subject: [PATCH] =?UTF-8?q?(Android)=20reload=C2=A0cores=20path=20every=20?= =?UTF-8?q?lauch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reload the path instead of saving and reusing every launch --- .../src/com/retroarch/browser/mainmenu/MainMenuActivity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/android/phoenix/src/com/retroarch/browser/mainmenu/MainMenuActivity.java b/pkg/android/phoenix/src/com/retroarch/browser/mainmenu/MainMenuActivity.java index b560a063f0..be49e99010 100644 --- a/pkg/android/phoenix/src/com/retroarch/browser/mainmenu/MainMenuActivity.java +++ b/pkg/android/phoenix/src/com/retroarch/browser/mainmenu/MainMenuActivity.java @@ -5,7 +5,6 @@ import com.retroarch.browser.retroactivity.RetroActivityFuture; import com.retroarch.browser.retroactivity.RetroActivityPast; import android.content.Intent; -import android.content.SharedPreferences; import android.content.pm.ApplicationInfo; import android.media.AudioManager; import android.os.Build; @@ -75,7 +74,6 @@ int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE = 0; } UserPreferences.updateConfigFile(this); - final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); Intent retro; if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)) @@ -91,7 +89,7 @@ int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE = 0; startRetroActivity( retro, null, - prefs.getString("libretro_path", getApplicationInfo().dataDir + "/cores/"), + (getApplicationInfo().dataDir + "/cores/"), UserPreferences.getDefaultConfigPath(this), Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD), getApplicationInfo().dataDir,