Skip to content
Snippets Groups Projects
Commit 371a1f7f authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@2878 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7a3e57db
No related branches found
No related tags found
No related merge requests found
......@@ -275,6 +275,7 @@ function _M:saveModuleProfile(name, data, module, nosync)
local online = self:filterSaveData(name)
local pop = self:mountProfile(online, module)
--[[
local path = "current-profile/modules/"..module.."/"..name..".profile"
local f, msg = fs.open(path, "w")
print("[PROFILE] search path: ")
......@@ -288,6 +289,11 @@ function _M:saveModuleProfile(name, data, module, nosync)
else
print("[PROFILE] physfs error:", msg)
end
]]
local f = fs.open("/modules/"..module.."/"..name..".profile", "w")
f:write(data)
f:close()
self:umountProfile(online, pop)
if not nosync then self:setConfigs(module, name, data) end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment