Skip to content

Commit

Permalink
load smzip files before unmounting them so the game doesn't have to r…
Browse files Browse the repository at this point in the history
…estart in order for them to actually show up, which is, stupid, really stupid
  • Loading branch information
MinaciousGrace committed Jun 9, 2017
1 parent b91ab3e commit 9bc5440
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions src/ScreenInstallOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static void InstallSmzip( const RString &sZipFile, PlayAfterLaunchInfo &out )
break;
}
}
SONGMAN->DifferentialReloadDir(TEMP_ZIP_MOUNT_POINT);
FILEMAN->Unmount( "zip", sZipFile, TEMP_ZIP_MOUNT_POINT );

SCREENMAN->SystemMessage( sResult );
Expand Down
9 changes: 0 additions & 9 deletions src/ScreenSelectMusic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,15 +416,6 @@ void ScreenSelectMusic::Update( float fDeltaTime )

bool ScreenSelectMusic::Input( const InputEventPlus &input )
{
if (hasntalreadydifferentiallfartedsongs) {
int newsongs = SONGMAN->DifferentialReload();

if (newsongs > 0) {
hasntalreadydifferentiallfartedsongs = false;
m_MusicWheel.ReloadSongList(false, "");
}
}

// HACK: This screen eats mouse inputs if we don't check for them first.
bool mouse_evt = false;
for (int i = MOUSE_LEFT; i <= MOUSE_WHEELDOWN; i++)
Expand Down
1 change: 0 additions & 1 deletion src/ScreenSelectMusic.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class ScreenSelectMusic : public ScreenWithMenuElements
virtual void PushSelf( lua_State *L );

protected:
bool hasntalreadydifferentiallfartedsongs = true;
virtual bool GenericTweenOn() const { return true; }
virtual bool GenericTweenOff() const { return true; }
void UpdateSelectButton( PlayerNumber pn, bool bBeingPressed );
Expand Down

0 comments on commit 9bc5440

Please sign in to comment.