@@ -293,11 +293,13 @@ class LegendaryGame extends Game {
293
293
status : 'updating'
294
294
} )
295
295
const { maxWorkers } = await GlobalConfig . get ( ) . getSettings ( )
296
+ const { downloadNoHttps } = await GlobalConfig . get ( ) . getSettings ( )
296
297
const info = await Game . get ( this . appName , 'legendary' ) . getInstallInfo ( )
297
298
const workers = maxWorkers ? [ '--max-workers' , `${ maxWorkers } ` ] : [ ]
299
+ const noHttps = downloadNoHttps ? [ '--no-https' ] : [ ]
298
300
const logPath = join ( heroicGamesConfigPath , this . appName + '.log' )
299
301
300
- const commandParts = [ 'update' , this . appName , ...workers , '-y' ]
302
+ const commandParts = [ 'update' , this . appName , ...workers , ... noHttps , '-y' ]
301
303
const command = getLegendaryCommand ( commandParts )
302
304
303
305
logInfo ( [ `Updating ${ this . appName } with:` , command ] , LogPrefix . Legendary )
@@ -370,10 +372,12 @@ class LegendaryGame extends Game {
370
372
platformToInstall
371
373
} : InstallArgs ) : Promise < { status : 'done' | 'error' } > {
372
374
const { maxWorkers } = await GlobalConfig . get ( ) . getSettings ( )
375
+ const { downloadNoHttps } = await GlobalConfig . get ( ) . getSettings ( )
373
376
const info = await Game . get ( this . appName , 'legendary' ) . getInstallInfo (
374
377
platformToInstall
375
378
)
376
379
const workers = maxWorkers ? [ '--max-workers' , `${ maxWorkers } ` ] : [ ]
380
+ const noHttps = downloadNoHttps ? [ '--no-https' ] : [ ]
377
381
const withDlcs = installDlcs ? '--with-dlcs' : '--skip-dlcs'
378
382
const installSdl = sdlList . length
379
383
? this . getSdlList ( sdlList )
@@ -391,6 +395,7 @@ class LegendaryGame extends Game {
391
395
withDlcs ,
392
396
...installSdl ,
393
397
...workers ,
398
+ ...noHttps ,
394
399
'-y'
395
400
]
396
401
const command = getLegendaryCommand ( commandParts )
@@ -458,11 +463,13 @@ class LegendaryGame extends Game {
458
463
public async repair ( ) : Promise < ExecResult > {
459
464
// this.state.status = 'repairing'
460
465
const { maxWorkers } = await GlobalConfig . get ( ) . getSettings ( )
466
+ const { downloadNoHttps } = await GlobalConfig . get ( ) . getSettings ( )
461
467
const workers = maxWorkers ? [ '--max-workers' , `${ maxWorkers } ` ] : [ ]
468
+ const noHttps = downloadNoHttps ? [ '--no-https' ] : [ ]
462
469
463
470
const logPath = join ( heroicGamesConfigPath , this . appName + '.log' )
464
471
465
- const commandParts = [ 'repair' , this . appName , ...workers , '-y' ]
472
+ const commandParts = [ 'repair' , this . appName , ...workers , ... noHttps , '-y' ]
466
473
const command = getLegendaryCommand ( commandParts )
467
474
468
475
logInfo ( [ `Repairing ${ this . appName } :` , command ] , LogPrefix . Legendary )
0 commit comments