mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 01:08:26 +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
|
||||
const bool issep = (ch == '/');
|
||||
if (issep && ((ptr - parents) == 0)) {
|
||||
continue; // it's just the root directory, skip it.
|
||||
}
|
||||
#endif
|
||||
|
||||
if (issep) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue