From ea12ff9fafe2440d872a5cd8644a5d8a883bc5e8 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Mon, 28 Oct 2013 15:52:04 -0400 Subject: [PATCH] WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT --- src/filesystem/winrt/SDL_sysfilesystem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/filesystem/winrt/SDL_sysfilesystem.cpp b/src/filesystem/winrt/SDL_sysfilesystem.cpp index c70113200a3ce..2e9f7e710a8e8 100644 --- a/src/filesystem/winrt/SDL_sysfilesystem.cpp +++ b/src/filesystem/winrt/SDL_sysfilesystem.cpp @@ -118,6 +118,12 @@ SDL_GetBasePath(void) extern "C" char * SDL_GetPrefPath(const char *org, const char *app) { + /* WinRT note: The 'SHGetFolderPath' API that is used in Windows 7 and + * earlier is not available on WinRT or Windows Phone. WinRT provides + * a similar API, but SHGetFolderPath can't be called, at least not + * without violating Microsoft's app-store requirements. + */ + #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP /* A 'Roaming' folder is not available in Windows Phone 8, however a 'Local' folder is. */ const char * srcPath = SDL_WinRTGetFSPathUTF8(SDL_WINRT_PATH_LOCAL_FOLDER);