mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'config' entry point, pack.shared_file(...) & refactor engine_paths.cpp
This commit is contained in:
parent
85bea6f17d
commit
15342c2df2
7 changed files with 102 additions and 42 deletions
|
|
@ -101,6 +101,11 @@ function pack.data_file(packid, name)
|
|||
return "world:data/"..packid.."/"..name
|
||||
end
|
||||
|
||||
function pack.shared_file(packid, name)
|
||||
file.mkdirs("config:"..packid)
|
||||
return "config:"..packid.."/"..name
|
||||
end
|
||||
|
||||
-- events
|
||||
events = {
|
||||
handlers = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue