| 398 | } |
| 399 | |
| 400 | BString BoxedContainer::getNativePathForApp(const BoxedApp& app) { |
| 401 | for (auto& mount : mounts) { |
| 402 | BString path = mount.getFullLocalPath(); |
| 403 | if (app.path.startsWith(path)) { |
| 404 | BString result = app.path; |
| 405 | return mount.nativePath + Fs::nativeFromLocal(app.path.substr(path.length())+"/"+app.cmd); |
| 406 | } |
| 407 | } |
| 408 | return GlobalSettings::getRootFolder(this) + Fs::nativeFromLocal(app.path + "/" + app.cmd); |
| 409 | } |
| 410 | |
| 411 | bool BoxedContainer::addNewMount(const MountInfo& mountInfo) { |
| 412 | for (auto& mount : this->mounts) { |
no test coverage detected