| 40 | static Mix_Chunk *SFileChunk; |
| 41 | |
| 42 | void GetBasePath(char *buffer, size_t size) |
| 43 | { |
| 44 | if (basePath.length()) { |
| 45 | snprintf(buffer, size, "%s", basePath.c_str()); |
| 46 | return; |
| 47 | } |
| 48 | |
| 49 | char *path = SDL_GetBasePath(); |
| 50 | if (path == NULL) { |
| 51 | SDL_Log(SDL_GetError()); |
| 52 | buffer[0] = '\0'; |
| 53 | return; |
| 54 | } |
| 55 | |
| 56 | snprintf(buffer, size, "%s", path); |
| 57 | SDL_free(path); |
| 58 | } |
| 59 | |
| 60 | void GetPrefPath(char *buffer, size_t size) |
| 61 | { |
no test coverage detected