MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / install

Method install

source/ui/data/globalSettings.cpp:429–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427};
428
429void MonoInstaller::install(bool chooseShortCut, BoxedContainer* container, std::list< std::function<bool() > >& runner, std::list<AppDownloadTask>& downloads, bool alreadyCheckedWineOption) {
430 std::function<bool() > runInstall = [container]() {
431 GlobalSettings::startUpArgs = StartUpArgs(); // reset parameters
432 GlobalSettings::startUpArgs.setScale(GlobalSettings::getDefaultScale());
433 GlobalSettings::startUpArgs.setVsync(GlobalSettings::getDefaultVsync());
434 GlobalSettings::startUpArgs.setResolution(GlobalSettings::getDefaultResolution());
435 container->launch();
436 GlobalSettings::startUpArgs.addArg(B("/bin/wine"));
437 GlobalSettings::startUpArgs.addArg(B("wineboot"));
438 GlobalSettings::startUpArgs.addArg(B("-u"));
439 GlobalSettings::startUpArgs.readyToLaunch = true;
440 GlobalSettings::startUpArgs.mountInfo.push_back(MountInfo(B("/home/username/.cache/wine"), GlobalSettings::getDemoFolder(), false));
441
442 runOnMainUI([]() {
443 new WaitDlg(Msg::WAITDLG_LAUNCH_APP_TITLE, getTranslationWithFormat(Msg::WAITDLG_LAUNCH_APP_LABEL, true, B("Mono")));
444 return false;
445 });
446 return true;
447 };
448 runner.push_back(runInstall);
449}
450
451void GlobalSettings::loadFileLists() {
452 BOXEDWINE_CRITICAL_SECTION;

Callers

nothing calls this directly

Calls 11

StartUpArgsClass · 0.85
BFunction · 0.85
MountInfoClass · 0.85
runOnMainUIFunction · 0.85
getTranslationWithFormatFunction · 0.85
setVsyncMethod · 0.80
setResolutionMethod · 0.80
addArgMethod · 0.80
setScaleMethod · 0.45
launchMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected