reverted default card path to /mnt/sdcard/Wagic

This commit is contained in:
techdragon.nguyen@gmail.com
2012-03-01 03:41:51 +00:00
parent 15b99acdfb
commit 7482fa811c
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -661,7 +661,7 @@ string JGE::getFileSystemLocation()
if (env == NULL) 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"); 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"); jclass jniClass = env->FindClass("org/libsdl/app/SDLActivity");
@@ -669,8 +669,8 @@ string JGE::getFileSystemLocation()
if (methodId == 0) if (methodId == 0)
{ {
DebugTrace("An Error Occurred in getting the JNI methodID for getSystemFolderPath. Defaulting to /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/net.wagic.app/Wagic"; return "/mnt/sdcard/Wagic";
}; };
jstring systemPath = (jstring) env->CallStaticObjectMethod(jniClass, methodId); jstring systemPath = (jstring) env->CallStaticObjectMethod(jniClass, methodId);
@@ -240,10 +240,10 @@ public class SDLActivity extends Activity implements OnKeyListener{
// //
File wagicMediaPath = null; 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(); File externalFilesDir = Environment.getExternalStorageDirectory();
if ( externalFilesDir != null) { if ( externalFilesDir != null) {
internalPath = externalFilesDir.getAbsolutePath() + "/" + packageName + "/Wagic"; internalPath = externalFilesDir.getAbsolutePath() + "/Wagic";
} }
String state = Environment.getExternalStorageState(); String state = Environment.getExternalStorageState();
@@ -266,7 +266,7 @@ public class SDLActivity extends Activity implements OnKeyListener{
} }
else else
{ // found a removable media location { // found a removable media location
sdcardPath = selectedRemovableCardPath + "/" + packageName + "/Wagic"; sdcardPath = selectedRemovableCardPath + "/Wagic";
} }
} }