From 9b3f26d6722eeaa8dce8222b4c7cac675c186d6f Mon Sep 17 00:00:00 2001 From: Martin Natano Date: Mon, 23 Aug 2021 22:04:28 +0200 Subject: [PATCH] Increase Stats.xml file size limit to 100MB A lot of people have run into the previous ~10MB limit and increasing it to 100MB doesn't seem to break anything. I left a limit in place, so that excessively large Stats.xml files on a USB profile can't be used to make a cab run out of memory. (SM uses a multiple of the memory that is required for the file on disk.) --- src/Profile.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Profile.cpp b/src/Profile.cpp index 83875362a6..0f35e33244 100644 --- a/src/Profile.cpp +++ b/src/Profile.cpp @@ -49,11 +49,7 @@ static ThemeMetric UNLOCK_AUTH_STRING( "Profile", "UnlockAuthString" ); #define GUID_SIZE_BYTES 8 #define MAX_EDITABLE_INI_SIZE_BYTES 2*1024 // 2KB -#define MAX_PLAYER_STATS_XML_SIZE_BYTES \ - 400 /* Songs */ \ - * 5 /* Steps per Song */ \ - * 5 /* HighScores per Steps */ \ - * 1024 /* size in bytes of a HighScores XNode */ +#define MAX_PLAYER_STATS_XML_SIZE_BYTES 100*1024*1024 // 100MB const int DEFAULT_WEIGHT_POUNDS = 120; const float DEFAULT_BIRTH_YEAR= 1995;