From a8a5372c6b7590d21c7bd169c49e695ef5719396 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 23 May 2020 23:48:01 +0200 Subject: [PATCH] (UWP) File I/O is slow, so enable playlist compression and savefile compression by default --- config.def.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.def.h b/config.def.h index 0a4c88f426..a3d0e0ca0f 100644 --- a/config.def.h +++ b/config.def.h @@ -921,7 +921,11 @@ static const bool savestate_thumbnail_enable = false; /* When creating save (srm) files, compress * written data */ +#if defined(__WINRT__) || defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP +#define DEFAULT_SAVE_FILE_COMPRESSION true +#else #define DEFAULT_SAVE_FILE_COMPRESSION false +#endif /* When creating save state files, compress * written data */ @@ -972,7 +976,11 @@ static const int default_content_favorites_size = 200; #define DEFAULT_PLAYLIST_USE_OLD_FORMAT false /* When creating/updating playlists, compress written data */ +#if defined(__WINRT__) || defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP +#define DEFAULT_PLAYLIST_COMPRESSION true +#else #define DEFAULT_PLAYLIST_COMPRESSION false +#endif #ifdef HAVE_MENU /* Specify when to display 'core name' inline on playlist entries */