src/unix.cpp
branchgamebalance
changeset 9911 0b8b245a2391
parent 9908 0fa543611bbe
child 9912 1ac8aac92385
equal deleted inserted replaced
9910:0b2aebc8283e 9911:0b8b245a2391
    51 #if !defined(__MORPHOS__) && !defined(__AMIGAOS__)
    51 #if !defined(__MORPHOS__) && !defined(__AMIGAOS__)
    52 	return path[1] == '\0';
    52 	return path[1] == '\0';
    53 #else
    53 #else
    54 	/* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
    54 	/* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
    55 	const char *s = strchr(path, ':');
    55 	const char *s = strchr(path, ':');
    56 	return s[1] == '\0';
    56 	return s != NULL && s[1] == '\0';
    57 #endif
    57 #endif
    58 }
    58 }
    59 
    59 
    60 void FiosGetDrives()
    60 void FiosGetDrives()
    61 {
    61 {