diff --git a/stepmania/src/smpackage/SmpackageExportDlg.cpp b/stepmania/src/smpackage/SmpackageExportDlg.cpp index cd6a702a77..1cb0c4cf2e 100644 --- a/stepmania/src/smpackage/SmpackageExportDlg.cpp +++ b/stepmania/src/smpackage/SmpackageExportDlg.cpp @@ -193,7 +193,7 @@ static bool ExportPackage( const RString &sPackageName, const RString &sSourceIn try { - zip.AddNewFile( sSourceInstallDir+sFilePath, bUseCompression?Z_BEST_COMPRESSION:Z_NO_COMPRESSION, true ); + zip.AddNewFile( sSourceInstallDir+sFilePath, sFilePath, bUseCompression?Z_BEST_COMPRESSION:Z_NO_COMPRESSION, true ); } catch (CException* e) { @@ -290,11 +290,7 @@ void CSmpackageExportDlg::OnButtonExportAsIndividual() // Generate a package name for every path RString sPath = asPaths[i]; - RString sPackageName; - vector asPathBits; - split( sPath, "/", asPathBits, true ); - sPackageName = asPathBits[ asPathBits.size()-1 ] + ".smzip"; - sPackageName = ReplaceInvalidFileNameChars( sPackageName ); + RString sPackageName = ReplaceInvalidFileNameChars( sPath ) + ".smzip"; vector asPathsToExport; asPathsToExport.push_back( sPath );