Content menu, content-pack dependencies

This commit is contained in:
MihailRis 2024-01-27 00:36:18 +03:00
parent abc3e47feb
commit c57b2d0de3
25 changed files with 230 additions and 21 deletions

View file

@ -176,7 +176,7 @@ void Engine::loadWorldContent(const fs::path& folder) {
void Engine::loadAllPacks() {
auto resdir = paths->getResources();
contentPacks.clear();
ContentPack::scan(resdir/fs::path("content"), contentPacks);
ContentPack::scan(paths, contentPacks);
}
void Engine::setScreen(std::shared_ptr<Screen> screen) {
@ -212,3 +212,7 @@ std::vector<ContentPack>& Engine::getContentPacks() {
EnginePaths* Engine::getPaths() {
return paths;
}
std::shared_ptr<Screen> Engine::getScreen() {
return screen;
}