mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Make sure that file exists before trying to automatically create xml data in Downloader::getLocalFileHash
This commit is contained in:
parent
21555b19f3
commit
ca97148827
@ -2877,7 +2877,7 @@ std::string Downloader::getLocalFileHash(const std::string& filepath, const std:
|
||||
else
|
||||
local_xml_file = config.sXMLDirectory + "/" + path.filename().string() + ".xml";
|
||||
|
||||
if (config.bAutomaticXMLCreation && !boost::filesystem::exists(local_xml_file))
|
||||
if (config.bAutomaticXMLCreation && !boost::filesystem::exists(local_xml_file) && boost::filesystem::exists(path))
|
||||
{
|
||||
std::string xml_directory = config.sXMLDirectory + "/" + gamename;
|
||||
Util::createXML(filepath, config.iChunkSize, xml_directory);
|
||||
|
Loading…
Reference in New Issue
Block a user