Merge pull request #593 from illwieckz/nopacks

add command line option to not download game packs
This commit is contained in:
Timothee "TTimo" Besset 2018-02-03 13:49:26 -06:00 committed by GitHub
commit a26bd5a9aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View File

@ -18,6 +18,9 @@ proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcxproj' )
radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] )
AddOption('--no-packs',
dest='no_packs',
action='store_true',
help="don't fetch game packs")
Return( 'radiant' )

View File

@ -17,7 +17,7 @@ else:
Help(
"""
======================================================================
ZeroRadiant build system quick help
GtkRadiant build system quick help
You need scons v0.97.0d20070918.r2446 or newer
@ -25,6 +25,10 @@ Default build (release), just run scons at the toplevel
debug build:
$ scons config=debug
build using 8 parallel build jobs
but do not download any game packs
$ scons -j8 --no-packs
======================================================================
""" )
Return()

View File

@ -298,7 +298,8 @@ class Config:
pass
else:
# special case, fetch external paks under the local install directory
if not Environment().GetOption('clean'):
env = Environment()
if not env.GetOption('clean') and not env.GetOption('no_packs'):
self.FetchGamePaks( self.install_directory )
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
if ( self.platform == 'Windows' ):