mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 06:31:41 +00:00
Merge pull request #46 from merlin1991/confignamefix
Properly name game configuration files
This commit is contained in:
commit
fc61d44bc1
1 changed files with 34 additions and 2 deletions
|
@ -3411,8 +3411,40 @@ void CGameInstall::Run() {
|
|||
if(CheckFile(gameFilePath) != PATH_DIRECTORY) {
|
||||
radCreateDirectory(gameFilePath);
|
||||
}
|
||||
gameFilePath += m_strName.GetBuffer();
|
||||
gameFilePath += ".game";
|
||||
|
||||
switch ( m_availGame[ m_nComboSelect ] ) {
|
||||
case GAME_Q2:
|
||||
gameFilePath += "q2.game";
|
||||
break;
|
||||
case GAME_Q3:
|
||||
gameFilePath += "q3.game";
|
||||
break;
|
||||
case GAME_URT:
|
||||
gameFilePath += "urt.game";
|
||||
break;
|
||||
case GAME_UFOAI:
|
||||
gameFilePath += "ufoai.game";
|
||||
break;
|
||||
case GAME_Q2W:
|
||||
gameFilePath += "q2w.game";
|
||||
break;
|
||||
case GAME_WARSOW:
|
||||
gameFilePath += "warsow.game";
|
||||
break;
|
||||
case GAME_NEXUIZ:
|
||||
gameFilePath += "nexuiz.game";
|
||||
break;
|
||||
case GAME_TREMULOUS:
|
||||
gameFilePath += "tremulous.game";
|
||||
break;
|
||||
case GAME_JA:
|
||||
gameFilePath += "ja.game";
|
||||
break;
|
||||
case GAME_REACTION:
|
||||
gameFilePath += "reaction.game";
|
||||
break;
|
||||
}
|
||||
|
||||
Sys_Printf( "game file: %s\n", gameFilePath.GetBuffer() );
|
||||
|
||||
FILE * fg = fopen( gameFilePath.GetBuffer(), "w" );
|
||||
|
|
Loading…
Reference in a new issue