smpackage: fix courses and RandomMovies being added to zip file twice

This commit is contained in:
Chris Danford
2003-02-27 08:38:24 +00:00
parent 9ca8e5edde
commit b517c55693
4 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ PrefsManager::PrefsManager()
* stage CRS files) don't get it changed around on them. */
m_bPickExtraStage = false;
m_fLongVerSongSeconds = 60*3;
m_fMarathonVerSongSeconds = 60*5;
m_fLongVerSongSeconds = 60*2.5f; // Dynamite Rave is 2:55
m_fMarathonVerSongSeconds = 60*5.f;
/* I'd rather get occasional people asking for support for this even though it's
* already here than lots of people asking why songs aren't being displayed. */
@@ -91,9 +91,17 @@ void GetFilePaths( CString sDirOrFile, CStringArray& asPathToFilesOut )
// Not sure if this is ZipArchive's fault.
if( IsADirectory(sDirOrFile) && sDirOrFile.Right(1) != "\\" )
{
sDirOrFile += "\\";
sDirOrFile += "*.*";
}
sDirOrFile += "*.*";
if( IsAFile(sDirOrFile) )
{
asPathToFilesOut.Add( sDirOrFile );
return;
}
GetDirListing( sDirOrFile, asPathToFilesOut, false, true );
GetDirListing( sDirOrFile, asDirectoriesToExplore, true, true );
@@ -157,7 +165,6 @@ bool ExportPackage( CString sPackageName, const CStringArray& asDirectoriesToExp
for( int i=0; i<asDirectoriesToExport.GetSize(); i++ )
{
CStringArray asFilePaths;
asFilePaths.Add( asDirectoriesToExport[i] );
GetFilePaths( asDirectoriesToExport[i], asFilePaths );
for( int j=0; j<asFilePaths.GetSize(); j++ )
+2 -2
View File
@@ -13,10 +13,10 @@ Class2=CSmpackageDlg
ResourceCount=5
Resource1=IDR_MAINFRAME
Resource2=IDD_DIALOG_NAME
Resource2=IDD_INSTALL
Class3=CSMPackageInstallDlg
Class4=CSmpackageExportDlg
Resource3=IDD_INSTALL
Resource3=IDD_DIALOG_NAME
Class5=EnterName
Resource4=IDD_EXPORTER
Class6=EditInsallations
+1 -1
View File
@@ -19,7 +19,7 @@
!define PRODUCT_NAME_VER "${PRODUCT_NAME} ${VERSION}"
Name "${PRODUCT_NAME}"
OutFile "StepMania-CVS-20030224.exe"
OutFile "StepMania-CVS-20030226.exe"
;OutFile "StepMania301.exe"
; Some default compiler settings (uncomment and change at will):