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:
2
init.lua
2
init.lua
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user