diff options
Diffstat (limited to 'source/creator/creator_signals.c')
-rw-r--r-- | source/creator/creator_signals.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/creator/creator_signals.c b/source/creator/creator_signals.c index 55f9777f55a..44c93d2c615 100644 --- a/source/creator/creator_signals.c +++ b/source/creator/creator_signals.c @@ -110,7 +110,7 @@ static void sig_handle_crash_backtrace(FILE *fp) static void sig_handle_crash(int signum) { - wmWindowManager *wm = G.main->wm.first; + wmWindowManager *wm = G_MAIN->wm.first; #ifdef USE_WRITE_CRASH_BLEND if (wm->undo_stack) { @@ -118,11 +118,11 @@ static void sig_handle_crash(int signum) if (memfile) { char fname[FILE_MAX]; - if (!G.main->name[0]) { + if (!G_MAIN->name[0]) { BLI_make_file_string("/", fname, BKE_tempdir_base(), "crash.blend"); } else { - BLI_strncpy(fname, G.main->name, sizeof(fname)); + BLI_strncpy(fname, G_MAIN->name, sizeof(fname)); BLI_replace_extension(fname, sizeof(fname), ".crash.blend"); } @@ -139,11 +139,11 @@ static void sig_handle_crash(int signum) char fname[FILE_MAX]; - if (!G.main->name[0]) { + if (!G_MAIN->name[0]) { BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), "blender.crash.txt"); } else { - BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), BLI_path_basename(G.main->name)); + BLI_join_dirfile(fname, sizeof(fname), BKE_tempdir_base(), BLI_path_basename(G_MAIN->name)); BLI_replace_extension(fname, sizeof(fname), ".crash.txt"); } |