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