diff --git a/game/engines/default/engine/PlayerProfile.lua b/game/engines/default/engine/PlayerProfile.lua index 9e3fdc73acaa65e0283f64020173c15f39f91ae3..a0609e55e44674de510b6c6269f412a2f1fae4a3 100644 --- a/game/engines/default/engine/PlayerProfile.lua +++ b/game/engines/default/engine/PlayerProfile.lua @@ -307,9 +307,11 @@ end function _M:logOut() profile.generic.online = nil profile.auth = nil - local d = "/profiles/"..self.name.."/generic/" - fs.mount(engine.homepath, "/") - fs.delete(d.."online.profile") + + local restore = fs.getWritePath() + fs.setWritePath(engine.homepath) + fs.delete("/profiles/"..self.name.."/generic/online.profile") + if restore then fs.setWritePath(restore) end end function _M:checkFirstRun() diff --git a/game/engines/default/modules/boot/class/Game.lua b/game/engines/default/modules/boot/class/Game.lua index 3b02738b6f7c6b311c17d77f66888b7435671f5e..a52237ec3abdd43ec92e8a80e3c2d629b75ca334 100644 --- a/game/engines/default/modules/boot/class/Game.lua +++ b/game/engines/default/modules/boot/class/Game.lua @@ -429,9 +429,9 @@ function _M:createProfile(loginItem) if self.justlogin then profile:performlogin(loginItem.login, loginItem.pass) if profile.auth then - Dialog:simplePopup("Profile logged in!", "Your online profile is active now...", function() self:checkLogged() self:selectStepProfile() end ) + Dialog:simplePopup("Profile logged in!", "Your online profile is active now...", function() end ) else - Dialog:simplePopup("Log in rejected", "Couldn't log you...", function() self:selectStepProfile() end ) + Dialog:simplePopup("Log in rejected", "Couldn't log you...", function() end ) end return end