aboutsummaryrefslogtreecommitdiff
path: root/editor/pvrtc_compress.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-11-20 00:42:51 +0100
committerGitHub2017-11-20 00:42:51 +0100
commitecf80fbbbadaa782cbe81a6562916331c6762970 (patch)
tree7a949f6a95f36303a2f2d193aeabd6486e13f4a1 /editor/pvrtc_compress.cpp
parentbc26a5bd3a51b11bab63112275e7045c63a0ffc4 (diff)
parent6e3f2f44af808e9f4255c2462e16beee844c0df7 (diff)
downloadgodot-ecf80fbbbadaa782cbe81a6562916331c6762970.tar.gz
godot-ecf80fbbbadaa782cbe81a6562916331c6762970.tar.zst
godot-ecf80fbbbadaa782cbe81a6562916331c6762970.zip
Merge pull request #12988 from akien-mga/xdg-home-paths
Add support for XDG Base Directory spec
Diffstat (limited to '')
-rw-r--r--editor/pvrtc_compress.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pvrtc_compress.cpp b/editor/pvrtc_compress.cpp
index 13d74a659..575ff4028 100644
--- a/editor/pvrtc_compress.cpp
+++ b/editor/pvrtc_compress.cpp
@@ -62,12 +62,12 @@ static void _compress_image(Image::CompressMode p_mode, Image *p_image) {
}
return;
}
- String spath = EditorSettings::get_singleton()->get_settings_path();
+ String tmppath = EditorSettings::get_singleton()->get_cache_dir();
List<String> args;
- String src_img = spath + "/" + "_tmp_src_img.png";
- String dst_img = spath + "/" + "_tmp_dst_img.pvr";
+ String src_img = tmppath.plus_file("_tmp_src_img.png");
+ String dst_img = tmppath.plus_file("_tmp_dst_img.pvr");
args.push_back("-i");
args.push_back(src_img);