bugfix in Add_element_to_list(), there were changes in function interface, but they were not applied in function call, so this resulted in program hang when calling fileselector.

Bugfix there was no Atari_Memory_free() declaration when __MINT_ define was declared.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1799 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
nokturnal
2011-06-15 19:29:11 +00:00
parent bf28d19f20
commit 7184fb857f
5 changed files with 35 additions and 11 deletions

View File

@@ -437,7 +437,7 @@ void Read_list_of_files(T_Fileselector *list, byte selected_format)
}
if(!bFound){
Add_element_to_list(list, "..",1,Format_filename("/",19,1),ICON_NONE); // add if not present
Add_element_to_list(list, "..",Format_filename("/",19,1),1,ICON_NONE); // add if not present
list->Nb_directories ++;
}
@@ -1401,8 +1401,9 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
if (load)
{
#if defined(__MINT__)
chdir(Main_current_directory);
static char path[1024]={0};
chdir(Main_current_directory);
Dgetpath(path,0);
strcat(path,PATH_SEPARATOR);
strcpy(Main_current_directory,path);