mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Content packs structure update
This commit is contained in:
parent
04f06a4717
commit
924957ddee
10 changed files with 131 additions and 86 deletions
|
|
@ -51,7 +51,7 @@ Engine::Engine(EngineSettings& settings, EnginePaths* paths)
|
|||
}
|
||||
|
||||
auto resdir = paths->getResources();
|
||||
contentPacks.push_back({"base", resdir/path("content/base")});
|
||||
contentPacks.push_back(ContentPack::read(resdir/path("content/base")));
|
||||
loadContent();
|
||||
|
||||
Audio::initialize();
|
||||
|
|
@ -160,7 +160,7 @@ void Engine::loadContent() {
|
|||
|
||||
vector<path> resRoots;
|
||||
for (auto& pack : contentPacks) {
|
||||
ContentLoader loader(pack.folder);
|
||||
ContentLoader loader(&pack);
|
||||
loader.load(&contentBuilder);
|
||||
resRoots.push_back(pack.folder);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue