U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » Simple XML keymap parser
Re: Simple XML keymap parser [message #24556 is a reply to message #24539] Sun, 24 January 2010 11:25 Go to previous messageGo to previous message
Sc0rch is currently offline  Sc0rch
Messages: 99
Registered: February 2008
Location: Russia, Rubtsovsk
Member

kasome wrote on Sat, 23 January 2010 18:03


inline bool XMLConfig::Load(const String& path){
if ( path != "Default" && !FileExists(path) )
return false;

Path = path;
return path == "Default" ? LoadFromXMLFile(*this) : LoadFromXMLFile(*this, path);
}

right? Very Happy

You can remove "FileExists" at all. "LoadFromXMLFile" returns false if file not exists. My mistake, thank you!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GetUppFromDir - Creates Upp package for given directory
Next Topic: New Bazaar web page
Goto Forum:
  


Current Time: Fri Sep 18 06:32:36 GMT+2 2026

Total time taken to generate the page: 0.00859 seconds