234 InstallResult& result, std::map<std::string, std::string>& variables,
239 std::map<std::string, std::string>& variables,
243 InstallResult& result, std::map<std::string, std::string>& variables,
248 std::map<std::string, std::string>& variables,
253 std::map<std::string, std::string>& variables,
InstallResult& result);
256 std::map<std::string, std::string>& variables,
InstallResult& result);
259 std::map<std::string, std::string>& variables,
InstallResult& result);
262 std::map<std::string, std::string>& variables,
InstallResult& result);
265 std::map<std::string, std::string>& variables,
InstallResult& result);
268 std::map<std::string, std::string>& variables,
InstallResult& result);
271 std::map<std::string, std::string>& variables,
InstallResult& result);
274 std::map<std::string, std::string>& variables,
InstallResult& result);
277 std::map<std::string, std::string>& variables,
InstallResult& result);
280 std::map<std::string, std::string>& variables,
InstallResult& result);
283 static bool createWinePrefix(
const std::string& prefixPath,
const std::string& arch,
286 static bool runWinetricks(
const std::string& prefixPath,
const std::string& wineVersion,
287 const std::vector<std::string>& verbs,
InstallResult& result);
289 static bool setWineRegistry(
const std::string& prefixPath,
const std::string& wineVersion,
290 const std::string& path,
const std::string& key,
291 const std::string& value,
const std::string& type,
295 static bool createDesktopShortcut(
const InstallResult& result);
302 static std::string substituteVariables(
const std::string& input,
303 const std::map<std::string, std::string>& variables);
305 static std::string expandPath(
const std::string& path);
311 const std::string& message);
314 const std::string& warning);
316 static int runCommand(
const std::string& command, std::string& output);
318 static std::string getWinePath(
const std::string& version);
321 static std::atomic<InstallState> currentState_;
322 static std::atomic<bool> cancelRequested_;
324 static std::mutex progressMutex_;
static void installAsync(const LutrisInstallerScript &script, const InstallConfig &config, const CompletionCallback &onComplete, const ProgressCallback &onProgress=nullptr)
Execute an installation asynchronously.