Commit 371a1f7f6b882e5fa31a2f39693c16656b561a0b

Authored by dg
1 parent 7a3e57db

plop


git-svn-id: http://svn.net-core.org/repos/t-engine4@2878 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -275,6 +275,7 @@ function _M:saveModuleProfile(name, data, module, nosync)
275 275
276 276 local online = self:filterSaveData(name)
277 277 local pop = self:mountProfile(online, module)
  278 +--[[
278 279 local path = "current-profile/modules/"..module.."/"..name..".profile"
279 280 local f, msg = fs.open(path, "w")
280 281 print("[PROFILE] search path: ")
... ... @@ -288,6 +289,11 @@ function _M:saveModuleProfile(name, data, module, nosync)
288 289 else
289 290 print("[PROFILE] physfs error:", msg)
290 291 end
  292 +]]
  293 + local f = fs.open("/modules/"..module.."/"..name..".profile", "w")
  294 + f:write(data)
  295 + f:close()
  296 +
291 297 self:umountProfile(online, pop)
292 298
293 299 if not nosync then self:setConfigs(module, name, data) end
... ...