mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 06:31:41 +00:00
Having more than one game configured now works
This commit is contained in:
parent
b8095edbb5
commit
52cf5eddb0
1 changed files with 5 additions and 1 deletions
|
@ -3413,10 +3413,14 @@ void CGameInstall::Run() {
|
|||
|
||||
// write out the game file
|
||||
Str gameFilePath = g_strAppPath.GetBuffer();
|
||||
gameFilePath += "games/";
|
||||
gameFilePath += "games";
|
||||
if ( CheckFile( gameFilePath ) != PATH_DIRECTORY ) {
|
||||
radCreateDirectory( gameFilePath );
|
||||
}
|
||||
|
||||
// QB - Fix for when you have more than one game configured (before it just bombed out due to the dir already existing).
|
||||
// add the slash here instead of above else CheckFile() fails hard (on windows at least :/ )
|
||||
gameFilePath += "/";
|
||||
|
||||
switch ( m_availGames[ m_nComboSelect ] ) {
|
||||
case GAME_Q2:
|
||||
|
|
Loading…
Reference in a new issue