mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 01:38:27 +00:00
SDL_CreateDirectory(): directory tree creation for absolute paths for non-Windows platforms
This commit is contained in:
parent
a10578acbd
commit
cb0c7c9680
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue