Update dir_of call to use the short module id

Companion to the manifest id rename — engine.module.dir_of needs
the registered module id, which is now the short form.
This commit is contained in:
Axel Meyer
2026-05-24 03:09:29 +02:00
parent b262af08cb
commit d2b69a98c4

View File

@@ -44,7 +44,7 @@ function init()
-- 7. Save to a path inside the module's writeable area.
-- engine.module.dir_of returns ctx->loaded_module.path — the installed dir
-- of this module. io.open with an absolute path bypasses the asset sandbox.
local module_dir = engine.module.dir_of("sporel-module-map-editor-test")
local module_dir = engine.module.dir_of("map-editor-test")
local out_path = module_dir .. "/maps/test_work_saved.map.json"
maps.save_to_disk(map_id, out_path)