From 4b6263d6fcd7b28411f8a5c6e551409228741137 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Mon, 28 Feb 2011 19:42:06 +0000 Subject: [PATCH] Fixes grafx2 forgetting the image's directory, since r1710 (issue 421) git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1739 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/filesel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filesel.c b/src/filesel.c index e00a3223..a6bf033b 100644 --- a/src/filesel.c +++ b/src/filesel.c @@ -1419,12 +1419,13 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context) else { #if defined(__MINT__) - chdir(context->File_directory); static char path[1024]={0}; + chdir(context->File_directory); Dgetpath(path,0); strcat(path,PATH_SEPARATOR); strcpy(Main_current_directory,path); #else + chdir(context->File_directory); getcwd(Main_current_directory,256); #endif