[Download] Improve client downloads

This is a (partial) fix for issue #14
This commit is contained in:
0x90
2019-12-25 23:03:43 +01:00
parent e311e77861
commit 50e93d7f2f
4 changed files with 96 additions and 65 deletions

View File

@ -4,7 +4,6 @@ namespace Utils
{
CSV::CSV(const std::string& file, bool isFile, bool allowComments)
{
this->valid = false;
this->parse(file, isFile, allowComments);
}

View File

@ -18,7 +18,7 @@ namespace Utils
bool isValid() { return this->valid; }
private:
bool valid;
bool valid = false;
std::vector<std::vector<std::string>> dataMap;
void parse(const std::string& file, bool isFile = true, bool allowComments = true);