23 #ifdef SDL_FILESYSTEM_WINDOWS
28 #include "../../core/windows/SDL_windows.h"
33 #include "SDL_stdinc.h"
50 for (i = len-1; i > 0; i--) {
51 if (path[i] ==
'\\') {
76 if (!SUCCEEDED(SHGetFolderPath(
NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE,
NULL, 0, path))) {
90 SDL_snprintf(retval, len,
"%s\\%s\\%s\\", utf8, org, app);
DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt,...)
DECLSPEC void SDLCALL SDL_free(void *mem)
DECLSPEC char *SDLCALL SDL_GetPrefPath(const char *org, const char *app)
Get the user-and-app-specific path where files can be written.
GLsizei const GLchar *const * path
#define WIN_StringToUTF8(S)
DECLSPEC void *SDLCALL SDL_malloc(size_t size)
#define SDL_assert(condition)
DECLSPEC size_t SDLCALL SDL_strlen(const char *str)
#define SDL_OutOfMemory()
#define SDL_arraysize(array)
int WIN_SetError(const char *prefix)
typedef DWORD(WINAPI *XInputGetState_t)(DWORD dwUserIndex
Include file for filesystem SDL API functions.
DECLSPEC char *SDLCALL SDL_GetBasePath(void)
Get the path where the application resides.