| 58 | } |
| 59 | |
| 60 | void GetPrefPath(char *buffer, size_t size) |
| 61 | { |
| 62 | char *path = SDL_GetPrefPath("diasurgical", "devilution"); |
| 63 | if (path == NULL) { |
| 64 | buffer[0] = '\0'; |
| 65 | return; |
| 66 | } |
| 67 | |
| 68 | snprintf(buffer, size, "%s", path); |
| 69 | SDL_free(path); |
| 70 | } |
| 71 | |
| 72 | void TranslateFileName(char *dst, int dstLen, const char *src) |
| 73 | { |
no test coverage detected