Fix rXml limitation

(trophies)
This commit is contained in:
Nekotekina 2017-09-03 22:29:20 +03:00
parent 1262263f5c
commit 2e510e5ca0
4 changed files with 39 additions and 29 deletions

View file

@ -137,12 +137,15 @@ bool TROPUSRLoader::Save(const std::string& filepath)
bool TROPUSRLoader::Generate(const std::string& filepath, const std::string& configpath)
{
const std::string& path = vfs::get(configpath);
fs::file config(vfs::get(configpath));
if (!config)
{
return false;
}
// TODO: rXmlDocument can open only real file
verify(HERE), !fs::get_virtual_device(path);
rXmlDocument doc;
doc.Load(path);
doc.Read(config.to_string());
m_table4.clear();
m_table6.clear();