MCPcopy Create free account
hub / github.com/diasurgical/devilution / GetPrefPath

Function GetPrefPath

SourceX/storm/storm.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void 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
72void TranslateFileName(char *dst, int dstLen, const char *src)
73{

Callers 5

getIniPathFunction · 0.85
CaptureFileFunction · 0.85
init.cppFile · 0.85
ReadOnlyTestFunction · 0.85
pfile_get_save_pathFunction · 0.85

Calls 1

SDL_GetPrefPathFunction · 0.85

Tested by

no test coverage detected