misc project file fixes from trunk (e.g. rev 345). fixes the 'missing MSVCR90.DLL' absurdity

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-temp-fixes@357 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
TTimo
2010-12-24 19:04:32 +00:00
parent 36a1c4bbad
commit a6e2bf8e2d
26 changed files with 52 additions and 35 deletions

View File

@@ -39,6 +39,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "missing.h"
#include "gtkmisc.h"
#ifdef _WIN32
// sanity check - some gtk2 win32 runtimes replace sprintf
#if defined( sprintf )
#error sprintf is a macro. are you sure?
#endif
#endif
#ifdef _WIN32
#include <io.h>
#define X_OK 0
@@ -3359,7 +3366,7 @@ void CGameInstall::BuildDialog() {
void CGameInstall::Run() {
ScanGames();
if (m_availGames[0] == GAME_NONE) {
if ( m_availGames[0] == GAME_NONE ) {
return;
}
if ( DoModal() == IDCANCEL ) {
@@ -3375,8 +3382,8 @@ void CGameInstall::Run() {
gameFilePath += ".game";
Sys_Printf( "game file: %s\n", gameFilePath.GetBuffer() );
FILE *fg = fopen( gameFilePath.GetBuffer(), "w" );
if ( fg == NULL || ferror( fg ) ) {
FILE * fg = fopen( gameFilePath.GetBuffer(), "w" );
if ( fg == NULL ) {
Error( "Failed to open %s for writing\n", gameFilePath.GetBuffer() );
}
fprintf( fg, "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>\n<game\n" );