MCPcopy Create free account
hub / github.com/axmolengine/axmol / parseImageFileName

Method parseImageFileName

core/2d/FontFNT.cpp:403–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void BMFontConfiguration::parseImageFileName(const char* line, std::string_view fntFile)
404{
405 //////////////////////////////////////////////////////////////////////////
406 // line to parse:
407 // page id=0 file="bitmapFontTest.png"
408 //////////////////////////////////////////////////////////////////////////
409
410 // page ID. Sanity check
411 int pageId;
412 sscanf(line, "page id=%d", &pageId);
413 AXASSERT(pageId == 0, "LabelBMFont file could not be found");
414
415 // file
416 char fileName[255];
417 sscanf(strstr(line, "file=\"") + 6, "%[^\"]", fileName);
418 _atlasName = FileUtils::getInstance()->fullPathFromRelativeFile(fileName, fntFile);
419}
420
421void BMFontConfiguration::parseInfoArguments(const char* line)
422{

Callers 1

parseConfigFileMethod · 0.95

Calls 2

getInstanceFunction · 0.85

Tested by

no test coverage detected