packs list read fix
This commit is contained in:
parent
a96fbf2eb4
commit
01121b6d27
@ -6,6 +6,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdexcept>
|
||||
#include "../coders/json.h"
|
||||
#include "../util/stringutil.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@ -109,6 +110,7 @@ std::vector<std::string> files::read_list(std::filesystem::path filename) {
|
||||
std::vector<std::string> lines;
|
||||
std::string line;
|
||||
while (std::getline(file, line)) {
|
||||
util::trim(line);
|
||||
if (line.length() == 0)
|
||||
continue;
|
||||
if (line[0] == '#')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user