Skip to content

Commit

Permalink
Show proper error if things are not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro authored Jan 5, 2025
1 parent b26300b commit 22da947
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions modules/client_entergame/entergame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,12 @@ function EnterGame.tryHttpLogin(clientVersion, httpLogin)
loadBox:destroy()
loadBox = nil
end
return EnterGame.show()

local errorBox = displayErrorBox(tr("Login Error"), string.format("Things are not loaded, please put assets in things/%d/<assets>.", clientVersion))
connect(errorBox, {
onOk = EnterGame.show
})
return
end

local host, path = G.host:match("([^/]+)/([^/].*)")
Expand Down Expand Up @@ -732,7 +737,12 @@ function EnterGame.doLogin()
loadBox:destroy()
loadBox = nil
end
return EnterGame.show()

local errorBox = displayErrorBox(tr("Login Error"), string.format("Things are not loaded, please put spr and dat in things/%d/<here>.", clientVersion))
connect(errorBox, {
onOk = EnterGame.show
})
return
end
end
end
Expand Down

0 comments on commit 22da947

Please sign in to comment.