Renamed Find_last_slash() to Find_last_separator() to make purpose more clear.

Append_path():
- when adding sub directories: don't add a "/" when last separator is a ":".
- when climbing upwards: don't remove the ":" it it's the last separator.

Those fixes help the file selector for scripts on AROS.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1979 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
mazzearos
2012-08-05 08:51:16 +00:00
parent d31b865482
commit d28a1df60b
7 changed files with 23 additions and 15 deletions

View File

@@ -1742,7 +1742,7 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
Config.Bookmark_directory[clicked_button-10]=malloc(temp+1);
strcpy(Config.Bookmark_directory[clicked_button-10],Main_current_directory);
directory_name=Find_last_slash(Main_current_directory);
directory_name=Find_last_separator(Main_current_directory);
if (directory_name && directory_name[1]!='\0')
directory_name++;
else