Meta::toFile now returns, as it should

This commit is contained in:
Thulinma 2017-05-22 16:11:00 +02:00
parent c12e7897cf
commit 108499bc58

View file

@ -1988,7 +1988,9 @@ namespace DTSC {
bool Meta::toFile(const std::string & fileName){ bool Meta::toFile(const std::string & fileName){
std::ofstream oFile(fileName.c_str()); std::ofstream oFile(fileName.c_str());
oFile << toJSON().toNetPacked(); oFile << toJSON().toNetPacked();
if (!oFile.good()){return false;}
oFile.close(); oFile.close();
return true;
} }
///\brief Converts a meta object to a human readable string ///\brief Converts a meta object to a human readable string