replace BLI_make_file_string with BLI_join_dirfile since its much more simple and does whats needed.
This commit is contained in:
@@ -545,11 +545,10 @@ static void blender_crash_handler(int signum)
|
|||||||
char fname[FILE_MAX];
|
char fname[FILE_MAX];
|
||||||
|
|
||||||
if (!G.main->name[0]) {
|
if (!G.main->name[0]) {
|
||||||
BLI_make_file_string("/", fname, BLI_temporary_dir(), "blender.crash.txt");
|
BLI_join_dirfile(fname, sizeof(fname), BLI_temporary_dir(), "blender.crash.txt");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const char *fname_base = BLI_path_basename(G.main->name);
|
BLI_join_dirfile(fname, sizeof(fname), BLI_temporary_dir(), BLI_path_basename(G.main->name));
|
||||||
BLI_make_file_string("/", fname, BLI_temporary_dir(), fname_base);
|
|
||||||
BLI_replace_extension(fname, sizeof(fname), ".crash.txt");
|
BLI_replace_extension(fname, sizeof(fname), ".crash.txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user