Permalink
Browse files

FIX: [droid] Do not define XBMC_TEMP, thus moving temp to user folder…

…, thus external storage if avail
  • Loading branch information...
1 parent 245fbd0 commit db34c5aafe26ea760a6b860e5264861b5ac794fb @koying committed Nov 16, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 xbmc/android/activity/android_main.cpp
@@ -84,7 +84,6 @@ void setup_env(struct android_app* state)
// Get the path to the temp/cache directory
char cacheDir[PATH_MAX] = {0};
- char tempDir[PATH_MAX] = {0};
jmethodID midActivityGetCacheDir = env->GetMethodID(cActivity, "getCacheDir", "()Ljava/io/File;");
jobject oCacheDir = env->CallObjectMethod(oActivity, midActivityGetCacheDir);
@@ -95,14 +94,10 @@ void setup_env(struct android_app* state)
jstring sCachePath = (jstring)env->CallObjectMethod(oCacheDir, midFileGetAbsolutePath);
temp = env->GetStringUTFChars(sCachePath, NULL);
strcpy(cacheDir, temp);
- strcpy(tempDir, temp);
env->ReleaseStringUTFChars(sCachePath, temp);
env->DeleteLocalRef(sCachePath);
env->DeleteLocalRef(oCacheDir);
- strcat(tempDir, "/temp");
- setenv("XBMC_TEMP", tempDir, 0);
-
strcat(cacheDir, "/apk");
//cache assets from the apk

0 comments on commit db34c5a

Please sign in to comment.