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.)
This commit is contained in:
Martin Natano
2021-09-01 23:20:28 +02:00
parent 84dd29527a
commit 9b3f26d672
+1 -5
View File
@@ -49,11 +49,7 @@ static ThemeMetric<RString> 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;