reverted default card path to /mnt/sdcard/Wagic
This commit is contained in:
@@ -661,7 +661,7 @@ string JGE::getFileSystemLocation()
|
||||
if (env == NULL)
|
||||
{
|
||||
DebugTrace("An Error Occurred in getting the JNI Environment whie trying to get the system folder location. Defaulting to /mnt/sdcard/net.wagic.app/Wagic");
|
||||
return "/mnt/sdcard/net.wagic.app/Wagic";
|
||||
return "/mnt/sdcard/Wagic";
|
||||
};
|
||||
|
||||
jclass jniClass = env->FindClass("org/libsdl/app/SDLActivity");
|
||||
@@ -669,8 +669,8 @@ string JGE::getFileSystemLocation()
|
||||
|
||||
if (methodId == 0)
|
||||
{
|
||||
DebugTrace("An Error Occurred in getting the JNI methodID for getSystemFolderPath. Defaulting to /mnt/sdcard/net.wagic.app/Wagic");
|
||||
return "/mnt/sdcard/net.wagic.app/Wagic";
|
||||
DebugTrace("An Error Occurred in getting the JNI methodID for getSystemFolderPath. Defaulting to /mnt/sdcard/Wagic");
|
||||
return "/mnt/sdcard/Wagic";
|
||||
};
|
||||
|
||||
jstring systemPath = (jstring) env->CallStaticObjectMethod(jniClass, methodId);
|
||||
|
||||
@@ -240,10 +240,10 @@ public class SDLActivity extends Activity implements OnKeyListener{
|
||||
//
|
||||
File wagicMediaPath = null;
|
||||
|
||||
String packageName = mContext.getPackageName();
|
||||
//String packageName = mContext.getPackageName(); // possibly use this to differentiate between different mods of Wagic.
|
||||
File externalFilesDir = Environment.getExternalStorageDirectory();
|
||||
if ( externalFilesDir != null) {
|
||||
internalPath = externalFilesDir.getAbsolutePath() + "/" + packageName + "/Wagic";
|
||||
internalPath = externalFilesDir.getAbsolutePath() + "/Wagic";
|
||||
}
|
||||
|
||||
String state = Environment.getExternalStorageState();
|
||||
@@ -266,7 +266,7 @@ public class SDLActivity extends Activity implements OnKeyListener{
|
||||
}
|
||||
else
|
||||
{ // found a removable media location
|
||||
sdcardPath = selectedRemovableCardPath + "/" + packageName + "/Wagic";
|
||||
sdcardPath = selectedRemovableCardPath + "/Wagic";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user