Merge pull request #2601 from Sonicadvance1/android_fix_user_directory

[Android] Make sure we are setting the default user directory.
This commit is contained in:
Ryan Houdek 2015-06-14 17:03:55 -05:00
commit 094c6bf5bc
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ public final class GameGridActivity extends Activity implements LoaderManager.Lo
// Stuff in this block only happens when this activity is newly created (i.e. not a rotation)
if (savedInstanceState == null)
{
NativeLibrary.SetUserDirectory(""); // Auto-Detect
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
boolean assetsCopied = preferences.getBoolean("assetsCopied", false);