Changeset 233

Show
Ignore:
Timestamp:
03/24/08 06:13:02 (3 months ago)
Author:
mattn
Message:

* added UFOAI_PACK support
* fixed prefix option for none q3 based games

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/branches/ZeroRadiant/radiant/preferences.cpp

    r227 r233  
    32383238        fprintf( fg, "  gametools=\"%sgames\"\n", g_strAppPath.GetBuffer() ); 
    32393239        fprintf( fg, "  enginepath=\"%s\"\n", m_strEngine.GetBuffer() ); 
    3240         fprintf( fg, "  prefix=\".q3a\"\n" );  
    32413240        switch ( m_availGames[ m_nComboSelect ] ) { 
    32423241        case GAME_Q3: { 
     3242                fprintf( fg, "  prefix=\".q3a\"\n" ); 
    32433243                Str source = g_strAppPath.GetBuffer(); 
    32443244                source += "installs/"; 
     
    32503250        } 
    32513251        case GAME_URT: { 
     3252                fprintf( fg, "  prefix=\".q3a\"\n" ); 
    32523253                Str source = g_strAppPath.GetBuffer(); 
    32533254                source += "installs/"; 
     
    32593260        } 
    32603261        case GAME_UFOAI: { 
     3262                fprintf( fg, "  prefix=\".ufoai\"\n" ); 
    32613263                Str source = g_strAppPath.GetBuffer(); 
    32623264                source += "installs/"; 
     
    32683270        } 
    32693271        case GAME_WARSOW: 
     3272                fprintf( fg, "  prefix=\".warsow\"\n" ); 
    32703273                fprintf( fg, "  basegame=\"basewsw\"\n" ); 
    32713274                break; 
     
    32943297                if ( stricmp( dirname, URT_PACK ) == 0 ) { 
    32953298                        m_availGames[ iGame++ ] = GAME_URT; 
    3296                 }                
     3299                } 
     3300                if ( stricmp( dirname, UFOAI_PACK ) == 0 ) { 
     3301                        m_availGames[ iGame++ ] = GAME_UFOAI; 
     3302                } 
    32973303        } 
    32983304}