WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT
authorDavid Ludwig <dludwig@pobox.com>
Mon, 28 Oct 2013 15:52:04 -0400
changeset 853941885a5f550d
parent 8538 d9279c169943
child 8540 724af2cd53b8
WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT
src/filesystem/winrt/SDL_sysfilesystem.cpp
     1.1 --- a/src/filesystem/winrt/SDL_sysfilesystem.cpp	Mon Oct 28 15:41:22 2013 -0400
     1.2 +++ b/src/filesystem/winrt/SDL_sysfilesystem.cpp	Mon Oct 28 15:52:04 2013 -0400
     1.3 @@ -118,6 +118,12 @@
     1.4  extern "C" char *
     1.5  SDL_GetPrefPath(const char *org, const char *app)
     1.6  {
     1.7 +    /* WinRT note: The 'SHGetFolderPath' API that is used in Windows 7 and
     1.8 +     * earlier is not available on WinRT or Windows Phone.  WinRT provides
     1.9 +     * a similar API, but SHGetFolderPath can't be called, at least not
    1.10 +     * without violating Microsoft's app-store requirements.
    1.11 +     */
    1.12 +
    1.13  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    1.14      /* A 'Roaming' folder is not available in Windows Phone 8, however a 'Local' folder is. */
    1.15      const char * srcPath = SDL_WinRTGetFSPathUTF8(SDL_WINRT_PATH_LOCAL_FOLDER);