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

Method GetFontFilesystem

src/game_config.cpp:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258
259FilesystemView Game_Config::GetFontFilesystem() {
260 std::string path = font_path;
261 if (path.empty()) {
262 path = FileFinder::MakePath(GetGlobalConfigFilesystem().GetFullPath(), "Font");
263 }
264
265 if (!FileFinder::Root().MakeDirectory(path, true)) {
266 Output::Warning("Could not create fount path {}", path);
267 return {};
268 }
269
270 return FileFinder::Root().Create(path);
271}
272
273Filesystem_Stream::OutputStream Game_Config::GetGlobalConfigFileOutput() {
274 auto fs = GetGlobalConfigFilesystem();

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