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
This commit is contained in:
		
							parent
							
								
									65d34dd7e0
								
							
						
					
					
						commit
						4b6263d6fc
					
				@ -1419,12 +1419,13 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
 | 
				
			|||||||
  else
 | 
					  else
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    #if defined(__MINT__)    
 | 
					    #if defined(__MINT__)    
 | 
				
			||||||
    chdir(context->File_directory);
 | 
					 | 
				
			||||||
    static char path[1024]={0};
 | 
					    static char path[1024]={0};
 | 
				
			||||||
 | 
					    chdir(context->File_directory);
 | 
				
			||||||
    Dgetpath(path,0);
 | 
					    Dgetpath(path,0);
 | 
				
			||||||
    strcat(path,PATH_SEPARATOR);
 | 
					    strcat(path,PATH_SEPARATOR);
 | 
				
			||||||
    strcpy(Main_current_directory,path);  
 | 
					    strcpy(Main_current_directory,path);  
 | 
				
			||||||
 #else
 | 
					 #else
 | 
				
			||||||
 | 
					    chdir(context->File_directory);
 | 
				
			||||||
    getcwd(Main_current_directory,256);
 | 
					    getcwd(Main_current_directory,256);
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user