mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
added paths 'world:' entry point
This commit is contained in:
parent
c6a2fc90a8
commit
5d6c2b9b8e
3 changed files with 12 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ void open_world(std::string name, Engine* engine) {
|
|||
L": "+util::str2wstr_utf8(error.what()));
|
||||
return;
|
||||
}
|
||||
paths->setWorldFolder(folder);
|
||||
|
||||
auto& packs = engine->getContentPacks();
|
||||
auto* content = engine->getContent();
|
||||
|
|
@ -303,6 +304,7 @@ void create_new_world_panel(Engine* engine, PagesControl* menu) {
|
|||
try {
|
||||
engine->loadAllPacks();
|
||||
engine->loadContent();
|
||||
paths->setWorldFolder(folder);
|
||||
} catch (const contentpack_error& error) {
|
||||
guiutil::alert(engine->getGUI(),
|
||||
langs::get(L"Content Error", L"menu")+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue