mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor
This commit is contained in:
parent
5fe5c6b27a
commit
5ffc054d75
16 changed files with 212 additions and 126 deletions
|
|
@ -146,9 +146,7 @@ void ContentPack::scanFolder(
|
|||
std::vector<std::string> ContentPack::worldPacksList(const fs::path& folder) {
|
||||
fs::path listfile = folder / fs::path("packs.list");
|
||||
if (!fs::is_regular_file(listfile)) {
|
||||
std::cerr << "warning: packs.list not found (will be created)";
|
||||
std::cerr << std::endl;
|
||||
files::write_string(listfile, "# autogenerated, do not modify\nbase\n");
|
||||
throw std::runtime_error("missing file 'packs.list'");
|
||||
}
|
||||
return files::read_list(listfile);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue