up the maximum size of an edit course from 30KB to 32KB.
allow the #BACKGROUND tag to be read from .crs files.
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
#include "CourseUtil.h"
|
#include "CourseUtil.h"
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
const int MAX_EDIT_COURSE_SIZE_BYTES = 30*1024; // 30KB
|
const int MAX_EDIT_COURSE_SIZE_BYTES = 32*1024; // 32KB
|
||||||
|
|
||||||
const char *g_CRSDifficultyNames[] =
|
const char *g_CRSDifficultyNames[] =
|
||||||
{
|
{
|
||||||
@@ -70,6 +70,10 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou
|
|||||||
{
|
{
|
||||||
out.m_sBannerPath = sParams[1];
|
out.m_sBannerPath = sParams[1];
|
||||||
}
|
}
|
||||||
|
else if( 0 == stricmp(sValueName, "BACKGROUND") )
|
||||||
|
{
|
||||||
|
out.m_sBackgroundPath = sParams[1];
|
||||||
|
}
|
||||||
else if( 0 == stricmp(sValueName, "LIVES") )
|
else if( 0 == stricmp(sValueName, "LIVES") )
|
||||||
{
|
{
|
||||||
out.m_iLives = max( atoi(sParams[1]), 0 );
|
out.m_iLives = max( atoi(sParams[1]), 0 );
|
||||||
|
|||||||
Reference in New Issue
Block a user