| 60 | } |
| 61 | |
| 62 | void BoxedContainer::loadInstalledPackageList() { |
| 63 | std::shared_ptr<FileSystemZip> fs = fileSystem.lock(); |
| 64 | BString path = GlobalSettings::getRootFolder(this).stringByApppendingPath("installed.txt"); |
| 65 | if (fs && !Fs::doesNativePathExist(path)) { |
| 66 | FsZip::extractFileFromZip(fs->filePath, B("installed.txt"), GlobalSettings::getRootFolder(this)); |
| 67 | } |
| 68 | |
| 69 | if (Fs::doesNativePathExist(path)) { |
| 70 | readLinesFromFile(path, installedPackages); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void BoxedContainer::saveInstalledPackageList() { |
| 75 | BString path = GlobalSettings::getRootFolder(this).stringByApppendingPath("installed.txt"); |
nothing calls this directly
no test coverage detected