mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor io/engine_paths
This commit is contained in:
parent
611c6fa444
commit
dbe9ca5efe
4 changed files with 51 additions and 34 deletions
|
|
@ -258,7 +258,7 @@ static int l_pack_request_writeable(lua::State* L) {
|
|||
auto str = langs::get(L"Grant %{0} pack modification permission?");
|
||||
util::replaceAll(str, L"%{0}", util::str2wstr_utf8(packid));
|
||||
guiutil::confirm(*engine, str, [packid, handler]() {
|
||||
handler({engine->getPaths().createWriteablePackDevice(packid)});
|
||||
handler({engine->getPaths().createWriteableDevice(packid)});
|
||||
engine->getGUI().getMenu()->reset();
|
||||
});
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue