Change file structures so that the interior modpol folder IS the portable modpol.
Added documentation of how to pre-define the modpath and the storage file.
This commit is contained in:
6
init.lua
6
init.lua
@ -15,7 +15,7 @@ modpol = {}
|
||||
|
||||
-- get modpol_minetest's version of directory
|
||||
modpol.get_script_dir = function()
|
||||
return minetest.get_modpath("modpol")
|
||||
return minetest.get_modpath("modpol").."/modpol"
|
||||
end
|
||||
|
||||
-- TKTK: Implement minetest settingtypes for this... for now, the default is to use minetest mod storage.
|
||||
@ -24,7 +24,7 @@ end
|
||||
|
||||
-- works with cmd line: "/storage/storage-local.lua", works with Minetest 5.0 and up: "/storage/storage-mod_storage.lua"
|
||||
|
||||
modpol.storage_file_path = minetest.get_modpath("modpol").."/storage/storage-mod_storage.lua"
|
||||
modpol.storage_file_path = minetest.get_modpath("modpol").."/modpol_minetest/storage/storage-mod_storage.lua"
|
||||
|
||||
-- ===================================================================
|
||||
-- /init.lua
|
||||
@ -35,7 +35,7 @@ modpol.storage_file_path = minetest.get_modpath("modpol").."/storage/storage-mod
|
||||
-- ===================================================================
|
||||
-- Load modpol system
|
||||
|
||||
dofile(minetest.get_modpath("modpol") .. "/modpol.lua")
|
||||
dofile(minetest.get_modpath("modpol") .. "/modpol/modpol.lua")
|
||||
|
||||
|
||||
-- ===================================================================
|
||||
|
Reference in New Issue
Block a user