From 52cf5eddb09a186fd466574e5f7e4590ed03d92d Mon Sep 17 00:00:00 2001 From: Chris Brooke Date: Sat, 14 Jul 2012 10:52:33 +0100 Subject: [PATCH] Having more than one game configured now works --- radiant/preferences.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index da42e67c..844e8224 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -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: