From 359e19e1b1870965d30b70092c360639234e21f1 Mon Sep 17 00:00:00 2001 From: Priton-CE Date: Sat, 21 Sep 2024 01:25:12 +0200 Subject: moved app id check into the correct if statement --- proto-wine/ftnoir_protocol_wine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index 076cf7976..efe2cd40c 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); -- cgit v1.2.3