diff options
author | Priton-CE <thies.eric@gmail.com> | 2024-09-21 01:25:12 +0200 |
---|---|---|
committer | Priton-CE <thies.eric@gmail.com> | 2024-09-21 01:25:12 +0200 |
commit | 359e19e1b1870965d30b70092c360639234e21f1 (patch) | |
tree | f9cb1ba83ef2abde0c38a3036d7bfe0f3b6becd5 | |
parent | b0eaf978110d0c79813cb16bf17cfb7ba71d8ddb (diff) |
moved app id check into the correct if statement
-rw-r--r-- | proto-wine/ftnoir_protocol_wine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index 076cf797..efe2cd40 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -108,9 +108,6 @@ module_status wine::initialize() // if proton is used setup proton environment if (s.variant_proton) { - if (s.proton_appid == 0) - return error(tr("Must specify application id for Proton (Steam Play)")); - auto [proton_env, env_error_string, env_success] = make_steam_environ(s.proton_path().toString()); env = proton_env; @@ -122,6 +119,9 @@ module_status wine::initialize() if (s.variant_proton && s.variant_proton_steamplay) { // wine prefix is dependend on steam + if (s.proton_appid == 0) + return error(tr("Must specify application id for Proton (Steam Play)")); + auto [prefix, error_string, success] = make_wineprefix(s.proton_appid); qDebug() << "proto/wine: wineprefix:" << prefix; env.insert("WINEPREFIX", prefix); |