added synchronize features to dancing
This commit is contained in:
@@ -447,6 +447,9 @@ bool Song::LoadSongInfoFromDWIFile( CString sPath )
|
||||
CStringArray arrayValueTokens;
|
||||
split( sValueString, ":", arrayValueTokens );
|
||||
|
||||
if( arrayValueTokens.GetSize() == 0 )
|
||||
continue;
|
||||
|
||||
CString sValueName = arrayValueTokens.GetAt( 0 );
|
||||
sValueName.TrimLeft();
|
||||
|
||||
|
||||
@@ -58,25 +58,23 @@ BOOL CSmpackageApp::InitInstance()
|
||||
|
||||
|
||||
// Make sure the current directory is the root program directory
|
||||
|
||||
// change dir to path of the execuctable
|
||||
TCHAR szFullAppPath[MAX_PATH];
|
||||
GetModuleFileName(NULL, szFullAppPath, MAX_PATH);
|
||||
|
||||
// strip off executable name
|
||||
LPSTR pLastBackslash = strrchr(szFullAppPath, '\\');
|
||||
*pLastBackslash = '\0'; // terminate the string
|
||||
|
||||
SetCurrentDirectory(szFullAppPath);
|
||||
|
||||
if( !DoesFileExist("Songs") )
|
||||
{
|
||||
// change dir to path of the execuctable
|
||||
TCHAR szFullAppPath[MAX_PATH];
|
||||
GetModuleFileName(NULL, szFullAppPath, MAX_PATH);
|
||||
|
||||
// strip off executable name
|
||||
LPSTR pLastBackslash = strrchr(szFullAppPath, '\\');
|
||||
*pLastBackslash = '\0'; // terminate the string
|
||||
|
||||
SetCurrentDirectory(szFullAppPath);
|
||||
|
||||
if( !DoesFileExist("Songs") )
|
||||
{
|
||||
AfxMessageBox( "Your Songs folder could not be located. Be sure 'smpackage.exe' is in your Stepmania installation folder.", MB_ICONSTOP );
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
AfxMessageBox( "Your Songs folder could not be located. Be sure 'smpackage.exe' is in your Stepmania installation folder.", MB_ICONSTOP );
|
||||
exit( 1 );
|
||||
}
|
||||
|
||||
|
||||
// check if there's a .smzip command line argument
|
||||
CStringArray arrayCommandLineBits;
|
||||
|
||||
Reference in New Issue
Block a user