added synchronize features to dancing

This commit is contained in:
Chris Danford
2002-02-12 06:55:04 +00:00
parent 6ed1d938e7
commit f2a7f50634
2 changed files with 17 additions and 16 deletions
+3
View File
@@ -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();
+14 -16
View File
@@ -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;