diff -r 162fec525764 -r 41b0a9955c47 project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java --- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java Thu Nov 24 13:40:17 2011 +0100 +++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/FrontendDataUtils.java Thu Nov 24 13:44:30 2011 +0100 @@ -85,8 +85,8 @@ } public static ArrayList> getGraves(Context c){ - String pathPrefix = Utils.getDownloadPath(c) + "Graphics/Graves/"; - ArrayList names = Utils.getFilesFromDirWithSuffix(c, "Graphics/Graves", ".png", true); + String pathPrefix = Utils.getDataPath(c) + "Graphics/Graves/"; + ArrayList names = Utils.getFilesFromDirWithSuffix(c,"Graphics/Graves", ".png", true); ArrayList> data = new ArrayList>(names.size()); for(String s : names){ @@ -106,7 +106,7 @@ } public static ArrayList> getFlags(Context c){ - String pathPrefix = Utils.getDownloadPath(c) + "Graphics/Flags/"; + String pathPrefix = Utils.getDataPath(c) + "Graphics/Flags/"; ArrayList names = Utils.getFilesFromDirWithSuffix(c, "Graphics/Flags", ".png", true); ArrayList> data = new ArrayList>(names.size()); @@ -131,7 +131,7 @@ } public static ArrayList getForts(Context c){ - return Utils.getFilesFromDirWithSuffix(c, "Forts", "L.png", true); + return Utils.getFilesFromDirWithSuffix(c,"Forts", "L.png", true); } public static ArrayList> getTypes(Context c){ ArrayList> data = new ArrayList>(6); @@ -149,8 +149,8 @@ } public static ArrayList> getHats(Context c){ - ArrayList files = Utils.getFilesFromDirWithSuffix(c, "Graphics/Hats", ".png", true); - String pathPrefix = Utils.getDownloadPath(c) + "Graphics/Hats/"; + ArrayList files = Utils.getFilesFromDirWithSuffix(c,"Graphics/Hats", ".png", true); + String pathPrefix = Utils.getDataPath(c) + "Graphics/Hats/"; int size = files.size(); ArrayList> data = new ArrayList>(size);