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

Method GuiXml

src/app/gui_xml.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29GuiXml::GuiXml()
30{
31 LOG("Loading gui.xml file...\n");
32
33 ResourceFinder rf;
34 rf.includeDataDir("gui.xml");
35 if (!rf.findFirst())
36 throw base::Exception("gui.xml was not found");
37
38 // Load the XML file. As we've already checked "path" existence,
39 // in a case of exception we should show the error and stop.
40 m_doc = app::open_xml(rf.filename());
41}
42
43std::string GuiXml::version()
44{

Callers

nothing calls this directly

Calls 6

LOGFunction · 0.85
ExceptionClass · 0.85
open_xmlFunction · 0.85
includeDataDirMethod · 0.80
findFirstMethod · 0.80
filenameMethod · 0.45

Tested by

no test coverage detected