refactor io/engine_paths

This commit is contained in:
MihailRis
2025-04-02 14:55:53 +03:00
parent 611c6fa444
commit dbe9ca5efe
4 changed files with 51 additions and 34 deletions
+1 -1
View File
@@ -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;