Create folders when writing a new gamelist.xml if necessary.

This commit is contained in:
Aloshi 2013-10-16 17:49:14 -05:00
parent 26a8538b20
commit 89fca2b875

View file

@ -215,6 +215,10 @@ void updateGamelist(SystemData* system)
}else{
//set up an empty gamelist to append to
doc.append_child("gameList");
//make sure the folders leading up to this path exist (or the XML file write will fail later on)
boost::filesystem::path path(xmlpath);
boost::filesystem::create_directories(path.parent_path());
}