Lines Matching refs:path
42 WCHAR *path = NULL; in SDL_GetBasePath() local
61 void *ptr = SDL_realloc(path, buflen * sizeof (WCHAR)); in SDL_GetBasePath()
63 SDL_free(path); in SDL_GetBasePath()
69 path = (WCHAR *) ptr; in SDL_GetBasePath()
71 len = pGetModuleFileNameExW(GetCurrentProcess(), NULL, path, buflen); in SDL_GetBasePath()
83 SDL_free(path); in SDL_GetBasePath()
89 if (path[i] == '\\') { in SDL_GetBasePath()
95 path[i+1] = '\0'; /* chop off filename. */ in SDL_GetBasePath()
97 retval = WIN_StringToUTF8(path); in SDL_GetBasePath()
98 SDL_free(path); in SDL_GetBasePath()
114 WCHAR path[MAX_PATH]; in SDL_GetPrefPath() local
129 if (!SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, 0, path))) { in SDL_GetPrefPath()
147 new_wpath_len = lstrlenW(worg) + lstrlenW(wapp) + lstrlenW(path) + 3; in SDL_GetPrefPath()
157 lstrcatW(path, L"\\"); in SDL_GetPrefPath()
158 lstrcatW(path, worg); in SDL_GetPrefPath()
162 api_result = CreateDirectoryW(path, NULL); in SDL_GetPrefPath()
171 lstrcatW(path, L"\\"); in SDL_GetPrefPath()
172 lstrcatW(path, wapp); in SDL_GetPrefPath()
175 api_result = CreateDirectoryW(path, NULL); in SDL_GetPrefPath()
183 lstrcatW(path, L"\\"); in SDL_GetPrefPath()
185 retval = WIN_StringToUTF8(path); in SDL_GetPrefPath()