Skip to content

Possibility to store all resources in a well defined absolute path#32

Open
zeyorama wants to merge 2 commits intoBennyQBD:masterfrom
zeyorama:master
Open

Possibility to store all resources in a well defined absolute path#32
zeyorama wants to merge 2 commits intoBennyQBD:masterfrom
zeyorama:master

Conversation

@zeyorama
Copy link
Copy Markdown

I've got many times trouble with the right working directory for the res folder. With SDL_GetPrefPath() there is a opportunity to get a native filesystem path, so the working directory for calling the binary doesn't need to be in the same directory.

If you want to use the new path system, copy one time all folder inside the res folder into the generated folder by SDL and you are good to go.
The path will be created after glewInit inside the Window constructor and is set, so you use the current system, uncomment the marked line to use the new system.

frankkevinzey and others added 2 commits February 16, 2015 16:14
system user directory.
Located in the util file

Signed-off-by: Frank Kevin Zey <frank.kevin.zey@mni.thm.de>
@zeyorama zeyorama changed the title Possibility to store all resources in an well defined absolute path Possibility to store all resources in a well defined absolute path Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants