| | |
| | | /* |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | SDL_Log("pref path: '%s'\n", pref_path); |
| | | SDL_free(pref_path); |
| | | |
| | | pref_path = SDL_GetPrefPath(NULL, "testfilesystem"); |
| | | if(pref_path == NULL){ |
| | | SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path without organization: %s\n", |
| | | SDL_GetError()); |
| | | return 1; |
| | | } |
| | | SDL_Log("pref path: '%s'\n", pref_path); |
| | | SDL_free(pref_path); |
| | | |
| | | SDL_Quit(); |
| | | return 0; |
| | | } |