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

Method saveContainer

source/ui/data/boxedContainer.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool BoxedContainer::saveContainer() {
98 BString iniFilePath = dirPath.stringByApppendingPath("container.ini");
99 ConfigFile config(iniFilePath);
100 config.writeString(B("Name"), this->name);
101 std::shared_ptr<FileSystemZip> fs = this->fileSystem.lock();
102 config.writeString(B("FileSystemZipName"), fs->name);
103 for (int i = 0; i < (int)this->mounts.size(); i++) {
104 config.writeString("Mount" + BString::valueOf(i + 1), this->mounts[i].localPath + "|" + this->mounts[i].nativePath);
105 }
106 config.saveChanges();
107 return true;
108}
109
110void BoxedContainer::deleteContainerFromFilesystem() {
111 Fs::deleteNativeDirAndAllFilesInDir(this->dirPath);

Callers 5

createContainerMethod · 0.80
runOptionsMethod · 0.80
installMethod · 0.80
saveChangesMethod · 0.80
onInstallMethod · 0.80

Calls 6

BFunction · 0.85
writeStringMethod · 0.80
lockMethod · 0.45
sizeMethod · 0.45
saveChangesMethod · 0.45

Tested by

no test coverage detected