edits: set m_LoadedFromProfile, force m_Difficulty to DIFFICULTY_EDIT
This commit is contained in:
@@ -372,7 +372,7 @@ bool SMLoader::LoadFromDir( CString sPath, Song &out )
|
|||||||
return LoadFromSMFile( sPath + aFileNames[0], out );
|
return LoadFromSMFile( sPath + aFileNames[0], out );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SMLoader::LoadEdit( CString sEditFilePath )
|
bool SMLoader::LoadEdit( CString sEditFilePath, ProfileSlot slot )
|
||||||
{
|
{
|
||||||
LOG->Trace( "Song::LoadEdit(%s)", sEditFilePath.c_str() );
|
LOG->Trace( "Song::LoadEdit(%s)", sEditFilePath.c_str() );
|
||||||
|
|
||||||
@@ -430,7 +430,9 @@ bool SMLoader::LoadEdit( CString sEditFilePath )
|
|||||||
LoadFromSMTokens(
|
LoadFromSMTokens(
|
||||||
sParams[1], sParams[2], sParams[3], sParams[4], sParams[5], sParams[6], (iNumParams>=8)?sParams[7]:"",
|
sParams[1], sParams[2], sParams[3], sParams[4], sParams[5], sParams[6], (iNumParams>=8)?sParams[7]:"",
|
||||||
*pNewNotes);
|
*pNewNotes);
|
||||||
/* XXX: set m_LoadedFromProfile, force m_Difficulty == DIFFICULTY_EDIT */
|
|
||||||
|
pNewNotes->SetLoadedFromProfile( slot );
|
||||||
|
pNewNotes->SetDifficulty( DIFFICULTY_EDIT );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LOG->Trace( "Unexpected value named '%s'", sValueName.c_str() );
|
LOG->Trace( "Unexpected value named '%s'", sValueName.c_str() );
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public:
|
|||||||
bool LoadFromDir( CString sPath, Song &out );
|
bool LoadFromDir( CString sPath, Song &out );
|
||||||
static bool LoadTimingFromFile( const CString &fn, TimingData &out );
|
static bool LoadTimingFromFile( const CString &fn, TimingData &out );
|
||||||
static void LoadTimingFromSMFile( const MsdFile &msd, TimingData &out );
|
static void LoadTimingFromSMFile( const MsdFile &msd, TimingData &out );
|
||||||
static bool LoadEdit( CString sEditFilePath );
|
static bool LoadEdit( CString sEditFilePath, ProfileSlot slot );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -967,7 +967,7 @@ void SongManager::LoadAllFromProfiles()
|
|||||||
{
|
{
|
||||||
CString sEditFileWithPath = asEditsFilesWithPath[i];
|
CString sEditFileWithPath = asEditsFilesWithPath[i];
|
||||||
|
|
||||||
SMLoader::LoadEdit( sEditFileWithPath );
|
SMLoader::LoadEdit( sEditFileWithPath, (ProfileSlot) s );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user