Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

SDL_GetPrefPath fails #82

Closed
samsinsane opened this issue Jun 25, 2019 · 0 comments · Fixed by #136
Closed

SDL_GetPrefPath fails #82

samsinsane opened this issue Jun 25, 2019 · 0 comments · Fixed by #136

Comments

@samsinsane
Copy link

SDL_GetPrefPath assumes that mkdir will create the intermediate directories but it doesn't.
The Unix version does this:

for (ptr = retval+1; *ptr; ptr++) {
if (*ptr == '/') {
*ptr = '\0';
if (mkdir(retval, 0700) != 0 && errno != EEXIST)
goto error;
*ptr = '/';
}
}

Perhaps this could be done in the Emscripten version too?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant