mirror of
https://github.com/lutris/lutris
synced 2024-10-06 15:59:39 +00:00
Validate wine architecture
This commit is contained in:
parent
537bd9873c
commit
acc947552b
|
@ -41,6 +41,8 @@ def wineexec(executable, args="", prefix=None, wine_path='wine', arch='win32'):
|
|||
executable = str(executable) if executable else ""
|
||||
if " " in executable:
|
||||
executable = "\"%s\"" % executable
|
||||
if arch not in ('win32', 'win64'):
|
||||
raise ValueError("Invalid WINEARCH %s" % arch)
|
||||
command = "WINEARCH=%s %s %s %s %s" % (
|
||||
arch, prefix, wine_path, executable, args
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue