Skip to content

Commit

Permalink
Fix smzip installation so the game doesnt crash on display initializa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
RGates94 committed Jun 8, 2017
1 parent ea06679 commit e59c916
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ScreenInstallOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ static void InstallSmzip( const RString &sZipFile, PlayAfterLaunchInfo &out )
Parse( sDir, out );
out.bAnySongChanged = true;

FILEMAN->CreateDir( sDir );

if( !FileCopy( *sSrcFile, sDestFile ) )
if( !FileCopy( *sSrcFile, "Songs/" + sDestFile ) )
{
sResult = "Error extracting " + sDestFile;
break;
Expand Down Expand Up @@ -306,6 +304,7 @@ PlayAfterLaunchInfo DoInstalls( CommandLineActions::CommandLineArgs args )
else if( IsPackageFile(s) )
InstallSmzipOsArg(s, ret);
}
SONGMAN->DifferentialReload();
return ret;
}

Expand Down Expand Up @@ -346,7 +345,6 @@ void ScreenInstallOverlay::Update( float fDeltaTime )
CommandLineActions::CommandLineArgs args = CommandLineActions::ToProcess.back();
CommandLineActions::ToProcess.pop_back();
PlayAfterLaunchInfo pali2 = DoInstalls( args );
playAfterLaunchInfo.OverlayWith( pali2 );
}
#if !defined(WITHOUT_NETWORKING)
for(int i=g_pDownloadTasks.size()-1; i>=0; --i)
Expand Down

0 comments on commit e59c916

Please sign in to comment.