Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Thu May 09 08:46:46 CEST 2024

Total time taken to generate the page: 0.01167 seconds