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

Method loadInstalledPackageList

source/ui/data/boxedContainer.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void 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
74void BoxedContainer::saveInstalledPackageList() {
75 BString path = GlobalSettings::getRootFolder(this).stringByApppendingPath("installed.txt");

Callers

nothing calls this directly

Calls 4

BFunction · 0.85
readLinesFromFileFunction · 0.85
lockMethod · 0.45

Tested by

no test coverage detected