Compare commits

...

2 Commits

Author SHA1 Message Date
Axel Meyer
d2b69a98c4 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.
2026-05-24 03:09:29 +02:00
Axel Meyer
b262af08cb Match module id to directory name convention
Same rationale as the sibling map-editor repo: manifest id is the
short directory name (map-editor-test), not the sporel-module-
prefixed form.
2026-05-24 03:08:37 +02:00
2 changed files with 2 additions and 2 deletions

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)

View File

@@ -1,5 +1,5 @@
{
"id": "sporel-module-map-editor-test",
"id": "map-editor-test",
"version": "0.1.0",
"kind": "test-module",
"api": "^0.1",