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:
2
src/io.h
2
src/io.h
@@ -68,7 +68,7 @@ void Extract_filename(char *dest, const char *source);
|
||||
void Extract_path(char *dest, const char *source);
|
||||
|
||||
/// Finds the rightmost path separator in a full filename. Used to separate directory from file.
|
||||
char * Find_last_slash(const char * str);
|
||||
char * Find_last_separator(const char * str);
|
||||
|
||||
#if defined(__WIN32__)
|
||||
#define PATH_SEPARATOR "\\"
|
||||
|
||||
Reference in New Issue
Block a user