1
0
Fork 0
mirror of synced 2024-06-23 08:40:45 +12:00

Fix bug, hwn launching origin games

This commit is contained in:
Dummerle 2022-07-07 23:56:19 +02:00
parent 90aa28323c
commit ef5e814f64
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -3,7 +3,7 @@ import platform
import shutil
from dataclasses import dataclass
from logging import getLogger
from typing import List, Tuple
from typing import List
from PyQt5.QtCore import QProcess, QProcessEnvironment
from legendary.core import LegendaryCore
@ -66,7 +66,7 @@ def get_origin_params(core: LegendaryCore, app_name, offline: bool,
env = core.get_app_environment(app_name)
launch_args.env = QProcessEnvironment.systemEnvironment()
for name, value in env:
for name, value in env.items():
launch_args.env.insert(name, value)
launch_args.executable = command[0]