core.delete_world and pages refreshing

This commit is contained in:
MihailRis
2024-03-22 18:48:09 +03:00
parent c457bdb293
commit 06efdac106
5 changed files with 33 additions and 8 deletions
-2
View File
@@ -106,7 +106,6 @@ static void reopen_world(Engine* engine, World* world) {
// FIXME
static bool try_add_dependency(Engine* engine, World* world, const ContentPack& pack, std::string& missing) {
auto paths = engine->getPaths();
auto gui = engine->getGUI();
for (const auto& dependency : pack.dependencies) {
fs::path folder = ContentPack::findPack(
paths,
@@ -128,7 +127,6 @@ static bool try_add_dependency(Engine* engine, World* world, const ContentPack&
void create_content_panel(Engine* engine, LevelController* controller) {
auto level = controller->getLevel();
auto menu = engine->getGUI()->getMenu();
auto paths = engine->getPaths();
auto mainPanel = menus::create_page(engine, "content", 550, 0.0f, 5);
std::vector<ContentPack> scanned;