add compatibility with other files

This commit is contained in:
alexei-zebra
2024-08-06 15:51:55 +03:00
parent 62125b14b4
commit 91ad9cc64c
9 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ EngineController::EngineController(Engine* engine) : engine(engine) {
}
void EngineController::deleteWorld(const std::string& name) {
fs::path folder = engine->getPaths()->getWorldFolder(name);
fs::path folder = engine->getPaths()->getWorldFolderByName(name);
guiutil::confirm(
engine->getGUI(),
langs::get(L"delete-confirm", L"world") + L" (" +
@@ -189,7 +189,7 @@ void EngineController::createWorld(
if (!menus::call(engine, [this, paths, folder]() {
engine->loadContent();
paths->setWorldFolder(folder);
paths->setCurrentWorldFolder(folder);
})) {
return;
}