From 4ec98bc30c40fb26c02a5012c3745987be32fc11 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 22 May 2010 10:21:24 -0500 Subject: [PATCH] up the maximum size of an edit course from 30KB to 32KB. allow the #BACKGROUND tag to be read from .crs files. --- src/CourseLoaderCRS.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CourseLoaderCRS.cpp b/src/CourseLoaderCRS.cpp index 839842088e..3fc2d8788b 100644 --- a/src/CourseLoaderCRS.cpp +++ b/src/CourseLoaderCRS.cpp @@ -16,7 +16,7 @@ #include "CourseUtil.h" #include -const int MAX_EDIT_COURSE_SIZE_BYTES = 30*1024; // 30KB +const int MAX_EDIT_COURSE_SIZE_BYTES = 32*1024; // 32KB const char *g_CRSDifficultyNames[] = { @@ -70,6 +70,10 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou { out.m_sBannerPath = sParams[1]; } + else if( 0 == stricmp(sValueName, "BACKGROUND") ) + { + out.m_sBackgroundPath = sParams[1]; + } else if( 0 == stricmp(sValueName, "LIVES") ) { out.m_iLives = max( atoi(sParams[1]), 0 );