apply misc fixes from Markus Fischer and Rambetter
[xonotic/netradiant.git] / radiant / preferences.cpp
index 6050c49b00846816f6250c6852eeb7b6fa931b63..9a71c25b95c7a474f08bc39547949d454af8b7de 100644 (file)
@@ -3359,6 +3359,9 @@ void CGameInstall::BuildDialog() {
 
 void CGameInstall::Run() {
        ScanGames();
 
 void CGameInstall::Run() {
        ScanGames();
+       if (m_availGames[0] == GAME_NONE) {
+               return;
+       }
        if ( DoModal() == IDCANCEL ) {
                Sys_Printf( "game dialog cancelled\n" );
                return;
        if ( DoModal() == IDCANCEL ) {
                Sys_Printf( "game dialog cancelled\n" );
                return;
@@ -3535,5 +3538,7 @@ void CGameInstall::ScanGames() {
                        m_availGames[ iGame++ ] = GAME_JA;
                }
        }
                        m_availGames[ iGame++ ] = GAME_JA;
                }
        }
+       Sys_Printf("No installable games found in: %s\n",
+               pakPaths.GetBuffer() );
 }
 
 }