Merge pull request #15326 from StormBytePP/6.x_fix_connection_patcher_linux

Core/Tools: Fix connection_patcher bnet folder location default in linux
This commit is contained in:
Shauren
2015-08-21 13:59:14 +02:00

View File

@@ -201,7 +201,8 @@ int main(int argc, char** argv)
if ((tempPath = getenv("HOME")) == nullptr)
tempPath = getpwuid(getuid())->pw_dir;
std::string tempPathStr(tempPath);
appDataPath.assign(tempPathStr.begin(), tempPathStr.end()) + std::wstring(L"/.wine/drive_c/users/Public/Application Data");
appDataPath.assign(tempPathStr.begin(), tempPathStr.end());
appDataPath += std::wstring(L"/.wine/drive_c/users/Public/Application Data");
#endif
if (vm.count("modulePath"))
appDataPath.assign(vm["modulePath"].as<std::string>().begin(), vm["modulePath"].as<std::string>().end());