Fix not finding wine binary, with 64bit only wine

pull/908/head
Alessandro Toia 1 year ago
parent f76527d14f
commit f6d980696d

@ -855,7 +855,10 @@ void init_system_info(){
else {
char *dir = dirname((char*)wineProcess.c_str());
stringstream findVersion;
findVersion << "\"" << dir << "/wine\" --version";
if (preloader == "wine-preloader")
findVersion << "\"" << dir << "/wine\" --version";
else
findVersion << "\"" << dir << "/wine64\" --version";
const char *wine_env = getenv("WINELOADERNOEXEC");
if (wine_env)
unsetenv("WINELOADERNOEXEC");

Loading…
Cancel
Save