SDL_CreateDirectory(): directory tree creation for absolute paths for non-Windows platforms
This commit is contained in:
committed by
Ryan C. Gordon
parent
a10578acbd
commit
cb0c7c9680
@@ -89,6 +89,9 @@ bool SDL_CreateDirectory(const char *path)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
const bool issep = (ch == '/');
|
const bool issep = (ch == '/');
|
||||||
|
if (issep && ((ptr - parents) == 0)) {
|
||||||
|
continue; // it's just the root directory, skip it.
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (issep) {
|
if (issep) {
|
||||||
|
|||||||
Reference in New Issue
Block a user