| 242 | } |
| 243 | |
| 244 | FilesystemView Game_Config::GetSoundfontFilesystem() { |
| 245 | std::string path = soundfont_path; |
| 246 | if (path.empty()) { |
| 247 | path = FileFinder::MakePath(GetGlobalConfigFilesystem().GetFullPath(), "Soundfont"); |
| 248 | } |
| 249 | |
| 250 | if (!FileFinder::Root().MakeDirectory(path, true)) { |
| 251 | Output::Warning("Could not create soundfont path {}", path); |
| 252 | return {}; |
| 253 | } |
| 254 | |
| 255 | return FileFinder::Root().Create(path); |
| 256 | } |
| 257 | |
| 258 | |
| 259 | FilesystemView Game_Config::GetFontFilesystem() { |
nothing calls this directly
no test coverage detected