SDL-mirror/include
David Ludwig cba7a719d8 WinRT: bug and data-integrity fixes for SDL_GetPrefPath()
This change does a few things, all with regards to the WinRT implementation of
SDL_GetPrefPath():

1. it fixes a bug whereby SDL_GetPrefPath() did not create the directory it
returned.  On other SDL platforms, SDL_GetPrefPath() will create separate
directories for its 'org' and 'app' folders.  Without this, attempts to create
files in the pref-path would fail, unless those directories were first created
by the app, or by some other library the app used.  This change makes sure
that these directories get created, before SDL_GetPrefPath() returns to its
caller(s).


2. it defaults to having SDL_GetPrefPath() return a WinRT 'Local' folder
on all platforms.  Previously, for Windows Store apps, it would have used a
different, 'Roaming' folder.  Files in Roaming folders can be automatically,
and synchronized across multiple devices by Windows.  This synchronization can
happen while the app runs, with new files being copied into a running app's
pref-path.  Unless an app is specifically designed to handle this scenario,
there is a chance that save-data could be overwritten in unwanted or
unexpected ways.

The default is now to use a Local folder, which does not get synchronized, and
which is arguably a bit safer to use.  Apps that wish to use Roaming folders
can do so by setting SDL_HINT_WINRT_PREF_PATH_ROOT to "roaming", however it
is recommended that one first read Microsoft's documentation for Roaming
files, a link to which is provided in README-winrt.md.

To preserve older pref-path selection behavior (found in SDL 2.0.3, as well as
many pre-2.0.4 versions of SDL from hg.libsdl.org), which uses a Roaming path
in Windows Store apps, and a Local path in Windows Phone, set
SDL_HINT_WINRT_PREF_PATH_ROOT to "old".

Please note that Roaming paths are not supported on Windows Phone 8.0, due to
limitations in the OS itself.  Attempts to use this will fail.
(Windows Phone 8.1 does not have this limitation, however.)


3. It makes SDL_GetPrefPath(), when on Windows Phone 8.0, and when
SDL_HINT_WINRT_PREF_PATH_ROOT is set to "roaming", return NULL, rather than
silently defaulting to a Local path (then switching to a Roaming path if and
when the user upgraded to Windows Phone 8.1).
2014-11-29 10:09:30 -05:00
..
begin_code.h Fix compiler warnings in Native Client and Linux builds. 2014-06-20 11:10:16 -03:00
close_code.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL.h Rearrange documentation 2014-07-29 09:20:12 -03:00
SDL_assert.h Changed local var names in SDL assert macro. 2014-07-28 10:54:25 -04:00
SDL_atomic.h 2620 solaris port missing atomics if not using gcc 2014-07-05 16:11:23 -07:00
SDL_audio.h Added audio device buffer queueing API. 2014-07-22 21:41:49 -04:00
SDL_bits.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_blendmode.h Corrected header file guard comments. 2014-11-25 22:37:12 +01:00
SDL_clipboard.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_config.h Integrated David Ludwig's support for Windows RT 2014-03-09 11:36:47 -07:00
SDL_config.h.cmake Expanded the iMX6 video driver into a general Vivante video driver that works across multiple SoCs 2014-10-15 09:18:17 -07:00
SDL_config.h.in Expanded the iMX6 video driver into a general Vivante video driver that works across multiple SoCs 2014-10-15 09:18:17 -07:00
SDL_config_android.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_config_iphoneos.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_config_macosx.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_config_minimal.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_config_pandora.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_config_psp.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_config_windows.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_config_winrt.h WinRT: enabled OpenGL ES 2 support on Windows Phone 2014-11-02 10:32:25 -05:00
SDL_config_wiz.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_copying.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_cpuinfo.h Fixed bug in AVX detection and added AVX2 detection 2014-07-11 22:02:50 -07:00
SDL_egl.h Fixed doxygen warnings and markdown formatting. 2014-08-12 23:28:45 +02:00
SDL_endian.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_error.h Added annotations to help code analysis tools 2014-06-04 10:56:56 -07:00
SDL_events.h Updated README name in header. 2014-08-11 22:53:03 +02:00
SDL_filesystem.h Corrected header file guard comments. 2014-11-25 22:37:12 +01:00
SDL_gamecontroller.h Corrected header file documentation comment. 2014-11-22 22:20:40 +01:00
SDL_gesture.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_haptic.h Haptic: Deal with negative periodic magnitudes (thanks, Elias!). 2014-09-17 14:49:36 -04:00
SDL_hints.h WinRT: bug and data-integrity fixes for SDL_GetPrefPath() 2014-11-29 10:09:30 -05:00
SDL_joystick.h Fixed typo in header file documentation comment. 2014-11-23 11:26:46 +01:00
SDL_keyboard.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_keycode.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_loadso.h Back out changelist 1951976 2014-02-13 11:05:34 -08:00
SDL_log.h Added annotations to help code analysis tools 2014-06-04 10:56:56 -07:00
SDL_main.h Chrome's Native Client backend implementation 2014-06-06 15:45:59 -03:00
SDL_messagebox.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_mouse.h Merged Ryan's SDL-gui-backend branch. 2014-06-25 17:06:12 -04:00
SDL_mutex.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_name.h Added missing copyright notices 2014-03-13 21:21:26 -07:00
SDL_opengl.h Don't use the system OpenGL headers, ever. 2014-08-18 14:05:02 -04:00
SDL_opengl_glext.h Better Mac OS X build fix - actually match the SDK OpenGL headers. 2014-08-18 18:44:08 -07:00
SDL_opengles.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_opengles2.h Fixed doxygen warnings and markdown formatting. 2014-08-12 23:28:45 +02:00
SDL_opengles2_gl2.h SDL_opengles2: Update to latest Khronos headers. 2014-06-04 01:35:36 -07:00
SDL_opengles2_gl2ext.h SDL_opengles2: Update to latest Khronos headers. 2014-06-04 01:35:36 -07:00
SDL_opengles2_gl2platform.h SDL_opengles2: Update to latest Khronos headers. 2014-06-04 01:35:36 -07:00
SDL_opengles2_khrplatform.h SDL_opengles2: Update to latest Khronos headers. 2014-06-04 01:35:36 -07:00
SDL_pixels.h Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers 2014-08-06 11:34:54 -07:00
SDL_platform.h 2620 solaris port missing atomics if not using gcc 2014-07-05 16:11:23 -07:00
SDL_power.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_quit.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_rect.h Fixed using SDL_PointInRect() from C++. 2014-05-30 09:50:47 -04:00
SDL_render.h Fixed two typos in header file comment. 2014-10-27 12:53:47 +01:00
SDL_revision.h Unofficial builds should have a 0 revision number - if this accidentally gets checked in with a different revision, this file should be reverted to this content. 2012-01-14 13:17:01 -05:00
SDL_rwops.h The NaCL mount/unmount functions need to be in SDL_system.h and specific to NaCL 2014-06-08 12:05:17 -07:00
SDL_scancode.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_shape.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_stdinc.h Removed SDL_round() because the license wasn't compatible with zlib 2014-08-17 13:11:55 -07:00
SDL_surface.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_system.h Initialize nacl_io, removes SDL_NaClMount/Umount 2014-06-20 10:59:51 -03:00
SDL_syswm.h Mac: Fix build with clang from Xcode 6. 2014-09-30 11:20:50 -07:00
SDL_test.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_test_assert.h Fixed typos in header file documentation comments. 2014-11-23 20:40:48 +01:00
SDL_test_common.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_test_compare.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_test_crc32.h Fixed doxygen tags in header file documentation comments. 2014-11-23 20:46:34 +01:00
SDL_test_font.h Exposed the font character size and SDLTest_DrawCharacter() to make it easier to do custom debug text layout 2014-02-10 10:02:42 -08:00
SDL_test_fuzzer.h Fixed doxygen tags in header file documentation comments. 2014-11-23 20:46:34 +01:00
SDL_test_harness.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_test_images.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_test_log.h Added annotations to help code analysis tools 2014-06-04 10:56:56 -07:00
SDL_test_md5.h Fixed doxygen tags in header file documentation comments. 2014-11-23 20:46:34 +01:00
SDL_test_random.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_thread.h Fixed example in header file. 2014-09-06 23:20:14 +02:00
SDL_timer.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_touch.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_types.h Fixed bug 2374 - Update copyright for 2014... 2014-02-02 00:53:27 -08:00
SDL_version.h Updated version to 2.0.4 2014-09-02 06:55:47 -07:00
SDL_video.h Added SDL_HITTEST_RESIZE_*, and implemented for X11. 2014-06-05 00:45:16 -04:00