mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Fix 64 bit windows q3map2 visibility.
This commit is contained in:
parent
dac352274a
commit
625eaa9502
3 changed files with 32 additions and 25 deletions
32
config.py
32
config.py
|
@ -169,22 +169,22 @@ class Config:
|
||||||
q3map2 = SConscript( os.path.join( build_dir, sconscript_name ) )
|
q3map2 = SConscript( os.path.join( build_dir, sconscript_name ) )
|
||||||
Default( InstallAs( os.path.join( self.install_directory, compiler_name ), q3map2 ) )
|
Default( InstallAs( os.path.join( self.install_directory, compiler_name ), q3map2 ) )
|
||||||
|
|
||||||
def emit_q3data( self ):
|
def emit_q3data( self ):
|
||||||
settings = self
|
settings = self
|
||||||
for config_name in self.config_selected:
|
for config_name in self.config_selected:
|
||||||
config = {}
|
config = {}
|
||||||
config['name'] = config_name
|
config['name'] = config_name
|
||||||
config['shared'] = False
|
config['shared'] = False
|
||||||
Export( 'utils', 'settings', 'config' )
|
Export( 'utils', 'settings', 'config' )
|
||||||
build_dir = os.path.join( 'build', config_name, 'q3data' )
|
build_dir = os.path.join( 'build', config_name, 'q3data' )
|
||||||
VariantDir( build_dir, '.', duplicate = 0 )
|
VariantDir( build_dir, '.', duplicate = 0 )
|
||||||
lib_objects = []
|
lib_objects = []
|
||||||
for project in [ 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj' ]:
|
for project in [ 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj' ]:
|
||||||
Export( 'project' )
|
Export( 'project' )
|
||||||
lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
|
lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
|
||||||
Export( 'lib_objects' )
|
Export( 'lib_objects' )
|
||||||
q3data = SConscript( os.path.join( build_dir, 'SConscript.q3data' ) )
|
q3data = SConscript( os.path.join( build_dir, 'SConscript.q3data' ) )
|
||||||
Default( InstallAs( os.path.join( self.install_directory, 'q3data' ), q3data ) )
|
Default( InstallAs( os.path.join( self.install_directory, 'q3data' ), q3data ) )
|
||||||
|
|
||||||
def emit( self ):
|
def emit( self ):
|
||||||
if 'radiant' in self.target_selected:
|
if 'radiant' in self.target_selected:
|
||||||
|
|
|
@ -662,7 +662,9 @@ PrefsDlg::PrefsDlg (){
|
||||||
#endif
|
#endif
|
||||||
m_nLightRadiuses = 1;
|
m_nLightRadiuses = 1;
|
||||||
m_bQ3Map2Texturing = TRUE;
|
m_bQ3Map2Texturing = TRUE;
|
||||||
m_bx64q3map2 = TRUE;
|
#ifdef _WIN32
|
||||||
|
m_bx64q3map2 = TRUE;
|
||||||
|
#endif
|
||||||
#ifdef ATIHACK_812
|
#ifdef ATIHACK_812
|
||||||
m_bGlATIHack = FALSE;
|
m_bGlATIHack = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
@ -3144,7 +3146,9 @@ void PrefsDlg::LoadPrefs(){
|
||||||
mLocalPrefs.GetPref( LIGHTRADIUS_KEY, &m_nLightRadiuses, TRUE );
|
mLocalPrefs.GetPref( LIGHTRADIUS_KEY, &m_nLightRadiuses, TRUE );
|
||||||
|
|
||||||
mLocalPrefs.GetPref( Q3MAP2TEX_KEY, &m_bQ3Map2Texturing, TRUE );
|
mLocalPrefs.GetPref( Q3MAP2TEX_KEY, &m_bQ3Map2Texturing, TRUE );
|
||||||
mLocalPrefs.GetPref( X64Q3MAP2_KEY, &m_bx64q3map2, TRUE );
|
#ifdef _WIN32
|
||||||
|
mLocalPrefs.GetPref( X64Q3MAP2_KEY, &m_bx64q3map2, TRUE );
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ATIHACK_812
|
#ifdef ATIHACK_812
|
||||||
mLocalPrefs.GetPref( ATIHACK_KEY, &m_bGlATIHack, FALSE );
|
mLocalPrefs.GetPref( ATIHACK_KEY, &m_bGlATIHack, FALSE );
|
||||||
|
|
|
@ -443,7 +443,7 @@ void ReplaceTemplates( char* w, const char* r ){
|
||||||
const char *__TOOLSPATH = "TEMPLATEtoolspath";
|
const char *__TOOLSPATH = "TEMPLATEtoolspath";
|
||||||
const char *__BASEDIR = "TEMPLATEbasedir";
|
const char *__BASEDIR = "TEMPLATEbasedir";
|
||||||
const char *__APPPATH = "TEMPLATEapppath";
|
const char *__APPPATH = "TEMPLATEapppath";
|
||||||
const char *__Q3MAP2 = "TEMPLATEq3map2";
|
const char *__Q3MAP2 = "TEMPLATEq3map2";
|
||||||
|
|
||||||
// iterate through string r
|
// iterate through string r
|
||||||
while ( *r != '\0' )
|
while ( *r != '\0' )
|
||||||
|
@ -471,13 +471,16 @@ void ReplaceTemplates( char* w, const char* r ){
|
||||||
p = g_strAppPath.GetBuffer();
|
p = g_strAppPath.GetBuffer();
|
||||||
}
|
}
|
||||||
else if ( strncmp( r + 1, __Q3MAP2, strlen( __Q3MAP2 ) ) == 0 ) {
|
else if ( strncmp( r + 1, __Q3MAP2, strlen( __Q3MAP2 ) ) == 0 ) {
|
||||||
r += strlen( __Q3MAP2 ) + 1;
|
r += strlen( __Q3MAP2 ) + 1;
|
||||||
// see https://github.com/TTimo/GtkRadiant/issues/116
|
// see https://github.com/TTimo/GtkRadiant/issues/116
|
||||||
if ( g_PrefsDlg.m_bx64q3map2 ) {
|
#ifdef _WIN32
|
||||||
|
if ( g_PrefsDlg.m_bx64q3map2 ) {
|
||||||
p = "x64/q3map2";
|
p = "x64/q3map2";
|
||||||
} else {
|
} else
|
||||||
p = "q3map2";
|
#endif
|
||||||
}
|
{
|
||||||
|
p = "q3map2";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue