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