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

Method launch

source/ui/data/boxedContainer.cpp:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void BoxedContainer::launch(const std::vector<BString>& args, BString labelForWaitDlg) {
154 GlobalSettings::startUpArgs = StartUpArgs();
155 GlobalSettings::startUpArgs.setScale(GlobalSettings::getDefaultScale());
156 GlobalSettings::startUpArgs.setVsync(GlobalSettings::getDefaultVsync());
157 GlobalSettings::startUpArgs.setResolution(GlobalSettings::getDefaultResolution());
158 GlobalSettings::startUpArgs.cacheReads = GlobalSettings::cacheReads();
159 this->launch();
160 GlobalSettings::startUpArgs.addArgs(args);
161 GlobalSettings::startUpArgs.readyToLaunch = true;
162
163 runOnMainUI([labelForWaitDlg]() {
164 new WaitDlg(Msg::WAITDLG_LAUNCH_APP_TITLE, getTranslationWithFormat(Msg::WAITDLG_LAUNCH_APP_LABEL, true, labelForWaitDlg));
165 return false;
166 });
167}
168
169void BoxedContainer::ensureFileSystemSet() {
170 std::shared_ptr<FileSystemZip> fs = this->fileSystem.lock();

Callers 1

Calls 10

StartUpArgsClass · 0.85
runOnMainUIFunction · 0.85
getTranslationWithFormatFunction · 0.85
setVsyncMethod · 0.80
setResolutionMethod · 0.80
addArgsMethod · 0.80
addZipMethod · 0.80
setRootMethod · 0.80
setScaleMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected