mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Create folders when writing a new gamelist.xml if necessary.
This commit is contained in:
parent
26a8538b20
commit
89fca2b875
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue