Use new XDG folders to dehardcode paths

This commit is contained in:
Rémi Verschelde
2017-11-17 21:48:24 +01:00
parent 32c12a92a5
commit 6e3f2f44af
15 changed files with 58 additions and 61 deletions

View File

@ -62,12 +62,12 @@ static void _compress_image(Image::CompressMode p_mode, Image *p_image) {
}
return;
}
String spath = EditorSettings::get_singleton()->get_settings_dir();
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);