MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetSoundfontFilesystem

Method GetSoundfontFilesystem

src/game_config.cpp:244–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244FilesystemView 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
259FilesystemView Game_Config::GetFontFilesystem() {

Callers

nothing calls this directly

Calls 4

GetFullPathMethod · 0.80
emptyMethod · 0.45
MakeDirectoryMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected