Home » Developing U++ » UppHub » Simple XML keymap parser
Re: Simple XML keymap parser [message #24539 is a reply to message #24531] |
Sat, 23 January 2010 18:03   |
kasome
Messages: 78 Registered: July 2008 Location: Taiwan
|
Member |
|
|
It is usful to me.
Thanks for your sharing, Sc0rch
BTW,one member function of first version of the Simple XML keymap parser,
inline bool XMLConfig::Load(const String& path){
if (!FileExists(path))
return false;
Path = path;
return path == "Default" ? LoadFromXMLFile(*this) : LoadFromXMLFile(*this, path);
}
should be
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?
[Updated on: Sat, 23 January 2010 18:09] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 12 00:53:46 CEST 2025
Total time taken to generate the page: 0.00542 seconds
|