MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / findFirst

Method findFirst

src/app/resource_finder.cpp:57–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool ResourceFinder::findFirst()
58{
59 while (next()) {
60 if (m_log)
61 LOG("Searching file \"%s\"...", filename().c_str());
62
63 if (base::is_file(filename())) {
64 if (m_log)
65 LOG(" (found)\n");
66
67 return true;
68 }
69 else if (m_log)
70 LOG(" (not found)\n");
71 }
72
73 return false;
74}
75
76void ResourceFinder::addPath(const std::string& path)
77{

Callers 9

initV8Method · 0.80
loadWidgetMethod · 0.80
GuiXmlMethod · 0.80
create_main_displayFunction · 0.80
loadLanguageFunction · 0.80
load_default_paletteFunction · 0.80
loadSheetMethod · 0.80
findFileFunction · 0.80

Calls 2

LOGFunction · 0.85
is_fileFunction · 0.50

Tested by

no test coverage detected