self.FetchGamePaks( self.install_directory )
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
if ( self.platform == 'Windows' ):
- depsfile = 'GtkR-deps-1.6-4.zip'
+ depsfile = 'GtkR-deps-1.6-5.zip'
if ( not os.path.exists( depsfile ) ):
cmd = [ 'wget', '-N', 'http://zerowing.idsoftware.com/files/radiant/developer/1.6.1/%s' % depsfile ]
print( repr( cmd ) )
# copy all the dependent runtime data to the install directory
srcdir = os.path.dirname( backup_cwd )
for f in [
+ # USE THE DEPENDENCY WALKER
+ # tier 1: radiant.exe direct deps
+ # tier 2: deps of tier 1 DLLs
+ # etc.
+ # tier 1
'libxml2/bin/libxml2.dll',
+ 'libxml2/bin/iconv.dll',
'gtk2/bin/libglib-2.0-0.dll',
'gtk2/bin/libgobject-2.0-0.dll',
'gtk2/bin/libgdk-win32-2.0-0.dll',
'gtk2/bin/libgtk-win32-2.0-0.dll',
'gtk2/bin/intl.dll',
- 'gtk2/bin/libatk-1.0-0.dll',
- 'gtk2/bin/libcairo-2.dll',
- 'gtk2/bin/libgdk_pixbuf-2.0-0.dll',
- 'gtk2/bin/libgmodule-2.0-0.dll',
- 'gtk2/bin/libpng13.dll',
'gtk2/bin/libpango-1.0-0.dll',
'gtk2/bin/libpangoft2-1.0-0.dll',
+ 'gtk2/lib/gtkglext-1.2.0/lib/libgtkglext-win32-1.0-0.dll',
+ 'gtk2/lib/gtkglext-1.2.0/lib/libgdkglext-win32-1.0-0.dll',
+ # tier 2
+ 'gtk2/bin/libgthread-2.0-0.dll',
+ 'gtk2/bin/libcairo-2.dll',
+ 'gtk2/bin/libgdk_pixbuf-2.0-0.dll',
'gtk2/bin/libpangocairo-1.0-0.dll',
'gtk2/bin/libpangowin32-1.0-0.dll',
- 'gtk2/lib/libgtkglext-win32-1.0-0.dll',
- 'gtk2/lib/libgdkglext-win32-1.0-0.dll',
- 'gtk2/lib/iconv.dll',
- 'gtk2/zlib1.dll',
- 'freetype-dev_2.4.2-1_win32/bin/freetype6.dll',
- 'fontconfig-dev_2.8.0-2_win32/bin/libfontconfig-1.dll',
- 'expat_2.0.1-1_win32/bin/libexpat-1.dll',
+ 'gtk2/bin/libatk-1.0-0.dll',
+ 'gtk2/bin/libgmodule-2.0-0.dll',
+ 'gtk2/bin/libfontconfig-1.dll',
+ 'gtk2/bin/freetype6.dll',
+ # tier 3
+ 'gtk2/bin/libexpat-1.dll',
+ 'gtk2/bin/libpng14-14.dll',
+ 'gtk2/bin/zlib1.dll',
+ 'gtk2/bin/libgio-2.0-0.dll',
]:
cmd = [ 'cp', '-v', os.path.join( srcdir, f ), 'install' ]
print( repr( cmd ) )
for d in [
'gtk2/etc',
'gtk2/share',
- 'fontconfig-dev_2.8.0-2_win32/etc',
- 'fontconfig-dev_2.8.0-2_win32/share',
- 'freetype-dev_2.4.2-1_win32/share',
]:
cmd = [ 'cp', '-r', '-v', os.path.join( srcdir, d ), 'install' ]
print( repr( cmd ) )
; camera.def : Declares the module parameters for the DLL.
LIBRARY "CAMERA"
-DESCRIPTION 'CAMERA Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include""\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gdk-pixbuf-2.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
MinimalRebuild="true"\r
BasicRuntimeChecks="3"\r
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include""\r
+ WholeProgramOptimization="true"\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gdk-pixbuf-2.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
WarningLevel="3"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; entity.def : Declares the module parameters for the DLL.
LIBRARY "ENTITY"
-DESCRIPTION 'ENTITY Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; image.def : Declares the module parameters for the DLL.
LIBRARY "Image"
-DESCRIPTION 'Image Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCLinkerTool"\r
+ AdditionalOptions="/NODEFAULTLIB:MSVCRT"\r
AdditionalDependencies=" synapse.lib libxml2.lib glib-2.0.lib gobject-2.0.lib libjpeg.lib"\r
AdditionalLibraryDirectories=""$(SolutionDir)\..\libxml2\lib";"$(SolutionDir)\..\gtk2\lib";"$(SolutionDir)\build\$(ConfigurationName)\libs";"$(SolutionDir)\..\jpeg-6b""\r
ModuleDefinitionFile="image.def"\r
; imagepng.def : Declares the module parameters for the DLL.
LIBRARY "IMAGEPNG"
-DESCRIPTION 'IMAGEPNG Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
// http://www.libpng.org/pub/png/libpng-manual.html
png_structp png_ptr = png_create_read_struct
- (PNG_LIBPNG_VER_STRING, png_voidp_NULL,
+ (PNG_LIBPNG_VER_STRING, NULL,
user_error_fn, user_warning_fn);
if (!png_ptr)
{
png_infop info_ptr = png_create_info_struct(png_ptr);
if (!info_ptr) {
png_destroy_read_struct(&png_ptr,
- png_infopp_NULL, png_infopp_NULL);
+ NULL, NULL);
g_FuncTable.m_pfnSysPrintf ("libpng error: png_create_info_struct (info_ptr)\n");
return;
}
png_infop end_info = png_create_info_struct(png_ptr);
if (!end_info) {
png_destroy_read_struct(&png_ptr, &info_ptr,
- png_infopp_NULL);
+ NULL);
g_FuncTable.m_pfnSysPrintf ("libpng error: png_create_info_struct (end_info)\n");
return;
}
if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_palette_to_rgb(png_ptr);
- if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
- png_set_gray_1_2_4_to_8(png_ptr);
+ if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) {
+ // png_set_gray_1_2_4_to_8 was renamed to png_set_expand_gray_1_2_4_to_8
+ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ }
if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
png_set_tRNS_to_alpha(png_ptr);
png_read_end(png_ptr, info_ptr);
/* free up the memory structure */
- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
free(row_pointers);
g_FileSystemTable.m_pfnFreeFile (fbuffer);
; mapq3.def : Declares the module parameters for the DLL.
-LIBRARY "MAPQ3"
-DESCRIPTION 'MAPQ3 Windows Dynamic Link Library'
+LIBRARY "MAP"
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; mapxml.def : Declares the module parameters for the DLL.
LIBRARY "MAPXML"
-DESCRIPTION 'MAPXML Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; model.def : Declares the module parameters for the DLL.
LIBRARY "MODEL"
-DESCRIPTION 'MODEL Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; shaders.def : Declares the module parameters for the DLL.
LIBRARY "Shaders"
-DESCRIPTION 'Shaders Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; surface.def : Declares the module parameters for the DLL.
LIBRARY "SURFACE"
-DESCRIPTION 'SURFACE Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include""\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\gtk2\include\gdk-pixbuf-2.0";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
MinimalRebuild="true"\r
BasicRuntimeChecks="3"\r
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include""\r
+ WholeProgramOptimization="true"\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\gtk2\include\gdk-pixbuf-2.0";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
WarningLevel="3"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
; vfspk3.def : Declares the module parameters for the DLL.
LIBRARY "VFSPK3"
-DESCRIPTION 'VFSPK3 Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
+ WholeProgramOptimization="true"\r
AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
+ LinkTimeCodeGeneration="1"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
TargetMachine="1"\r
m_hFile = fopen(filename, mode);
m_bCloseOnDelete = true;
- return (m_hFile != NULL);
+ return m_hFile != NULL;
}
void MemStream::Close()
cmds = g_slist_sort (cmds, (gint (*)(const void *, const void *))strcmp);
Sys_Printf("Writing the command list to %s", path.GetBuffer() );
- FILE* fileout = fopen (path.GetBuffer (), "wt");
+ FILE * fileout = fopen( path.GetBuffer (), "wt" );
while (cmds)
{
// check to see if the selected brush is part of a func group
// if it is, deselect everything and reselect the next brush
// in the group
- brush_t *b2, *b = selected_brushes.next;
+ brush_t *b = selected_brushes.next;
entity_t * e;
if (b != &selected_brushes)
{
#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
void CGameInstall::Run() {
ScanGames();
- if (m_availGames[0] == GAME_NONE) {
+ if ( m_availGames[0] == GAME_NONE ) {
return;
}
if ( DoModal() == IDCANCEL ) {
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" );
<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include";"$(SolutionDir)\..\fontconfig-dev_2.8.0-2_win32\include";"$(SolutionDir)\..\freetype-dev_2.4.2-1_win32\include";"$(SolutionDir)\..\freetype-dev_2.4.2-1_win32\include\freetype2""\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.2.0";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gdk-pixbuf-2.0";"$(SolutionDir)\..\gtk2\include\freetype2";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
MinimalRebuild="true"\r
BasicRuntimeChecks="3"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="intl.lib user32.lib shell32.lib gdi32.lib comdlg32.lib l_net.lib cmdlib.lib mathlib.lib Wsock32.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gdk-win32-2.0.lib gtk-win32-2.0.lib gtkglext-win32-1.0.lib gdkglext-win32-1.0.lib pango-1.0.lib pangoft2-1.0.lib"\r
- AdditionalLibraryDirectories=""$(SolutionDir)\..\libxml2\lib";"$(SolutionDir)\..\gtk2\lib";"$(SolutionDir)\build\$(ConfigurationName)\libs""\r
+ AdditionalDependencies="intl.lib user32.lib shell32.lib gdi32.lib comdlg32.lib l_net.lib cmdlib.lib mathlib.lib Wsock32.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gdk-win32-2.0.lib gtk-win32-2.0.lib pango-1.0.lib pangoft2-1.0.lib gtkglext-win32-1.0.lib gdkglext-win32-1.0.lib"\r
+ AdditionalLibraryDirectories=""$(SolutionDir)\..\libxml2\lib";"$(SolutionDir)\..\gtk2\lib";"$(SolutionDir)\build\$(ConfigurationName)\libs";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.2.0\lib""\r
GenerateDebugInformation="true"\r
RandomizedBaseAddress="1"\r
DataExecutionPrevention="0"\r
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.0\include";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gtkglext-1.0";"$(SolutionDir)\..\libxml2\include";"$(SolutionDir)\..\fontconfig-dev_2.8.0-2_win32\include";"$(SolutionDir)\..\freetype-dev_2.4.2-1_win32\include";"$(SolutionDir)\..\freetype-dev_2.4.2-1_win32\include\freetype2""\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\include";"$(SolutionDir)\libs";"$(SolutionDir)\..\STLPort\stlport";"$(SolutionDir)\..\gtk2\include";"$(SolutionDir)\..\gtk2\include\glib-2.0";"$(SolutionDir)\..\gtk2\lib\glib-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtk-2.0\include";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.2.0";"$(SolutionDir)\..\gtk2\include\gtk-2.0";"$(SolutionDir)\..\gtk2\include\cairo";"$(SolutionDir)\..\gtk2\include\pango-1.0";"$(SolutionDir)\..\gtk2\include\atk-1.0";"$(SolutionDir)\..\gtk2\include\gdk-pixbuf-2.0";"$(SolutionDir)\..\gtk2\include\freetype2";"$(SolutionDir)\..\libxml2\include""\r
PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS"\r
RuntimeLibrary="2"\r
WarningLevel="3"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="intl.lib user32.lib shell32.lib gdi32.lib comdlg32.lib l_net.lib cmdlib.lib mathlib.lib Wsock32.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gdk-win32-2.0.lib gtk-win32-2.0.lib gtkglext-win32-1.0.lib gdkglext-win32-1.0.lib pango-1.0.lib pangoft2-1.0.lib"\r
- AdditionalLibraryDirectories=""$(SolutionDir)\..\libxml2\lib";"$(SolutionDir)\..\gtk2\lib";"$(SolutionDir)\build\$(ConfigurationName)\libs""\r
+ AdditionalDependencies="intl.lib user32.lib shell32.lib gdi32.lib comdlg32.lib l_net.lib cmdlib.lib mathlib.lib Wsock32.lib libxml2.lib glib-2.0.lib gobject-2.0.lib gdk-win32-2.0.lib gtk-win32-2.0.lib pango-1.0.lib pangoft2-1.0.lib gtkglext-win32-1.0.lib gdkglext-win32-1.0.lib"\r
+ AdditionalLibraryDirectories=""$(SolutionDir)\..\libxml2\lib";"$(SolutionDir)\..\gtk2\lib";"$(SolutionDir)\build\$(ConfigurationName)\libs";"$(SolutionDir)\..\gtk2\lib\gtkglext-1.2.0\lib""\r
GenerateDebugInformation="true"\r
OptimizeReferences="2"\r
EnableCOMDATFolding="2"\r
>\r
</File>\r
<File\r
- RelativePath=".\gtkmisc.h"\r
+ RelativePath="..\..\src\gtk+\gtk\gtkmisc.h"\r
>\r
</File>\r
<File\r
- RelativePath="..\..\src\gtk+\gtk\gtkmisc.h"\r
+ RelativePath=".\gtkmisc.h"\r
>\r
</File>\r
<File\r
<Filter\r
Name="Misc"\r
>\r
- <File\r
- RelativePath="..\..\src\gtk+\gdk\win32\makefile.msc"\r
- >\r
- </File>\r
<File\r
RelativePath="..\..\src\gtk+\gtk\makefile.msc"\r
>\r
RelativePath="..\..\src\gtk+\gdk\makefile.msc"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\src\gtk+\gdk\win32\makefile.msc"\r
+ >\r
+ </File>\r
</Filter>\r
<File\r
RelativePath="..\setup\changelog.txt"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
+ AdditionalOptions="/NODEFAULTLIB:MSVCRT"\r
AdditionalDependencies="md5lib.lib ddslib.lib l_net.lib mathlib.lib picomodel.lib libjpeg.lib libxml2.lib libpng.lib glib-2.0.lib gobject-2.0.lib Wsock32.lib"\r
AdditionalLibraryDirectories=""$(SolutionDir)\..\jpeg-6b";"$(SolutionDir)\..\libxml2\lib";"$(SolutionDir)\..\gtk2\lib";"$(SolutionDir)\build\$(ConfigurationName)\libs""\r
GenerateDebugInformation="true"\r