| 77 | } |
| 78 | |
| 79 | BoxedContainer* 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 | |
| 97 | bool BoxedContainer::saveContainer() { |
| 98 | BString iniFilePath = dirPath.stringByApppendingPath("container.ini"); |
nothing calls this directly
no test coverage detected