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:
MisterE123
2021-02-11 16:39:51 -05:00
parent 37463fc8cc
commit dc12ec50a9
13 changed files with 41 additions and 6 deletions

View File

@ -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")
-- ===================================================================