mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add compatibility with other files
This commit is contained in:
parent
62125b14b4
commit
91ad9cc64c
9 changed files with 25 additions and 25 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue