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

Method createContainer

source/ui/data/boxedContainer.cpp:79–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79BoxedContainer* BoxedContainer::createContainer(BString dirPath, BString name, std::shared_ptr<FileSystemZip> fileSystem) {
80 BoxedContainer* container = new BoxedContainer();
81 container->name = name;
82 container->fileSystem = fileSystem;
83 container->dirPath = dirPath;
84 container->fileSystemZipName = fileSystem->name;
85 if (!Fs::doesNativePathExist(dirPath)) {
86 Fs::makeNativeDirs(dirPath);
87 }
88#ifdef __APPLE__
89 // FBO's don't work with the Mac OpenGL code, so for DirectDraw games, instead of using OpenGL with FBO's which Wine does by default, tell Wine to take care of it in software
90 container->setGDI(true);
91#endif
92 container->setVideoMemorySize(B("256"));
93 container->saveContainer();
94 return container;
95}
96
97bool BoxedContainer::saveContainer() {
98 BString iniFilePath = dirPath.stringByApppendingPath("container.ini");

Callers

nothing calls this directly

Calls 4

BFunction · 0.85
setGDIMethod · 0.80
setVideoMemorySizeMethod · 0.80
saveContainerMethod · 0.80

Tested by

no test coverage detected