Warn when no graphics is detected at startup

Add script for building otclient snaphots
This commit is contained in:
Eduardo Bart
2012-08-19 11:30:57 -03:00
parent 6d039ade67
commit 779f298055
6 changed files with 225 additions and 108 deletions

View File

@@ -88,15 +88,22 @@ function EnterGame.init()
protocolBox:setCurrentOption(clientVersion)
end
-- only open entergame when app starts
if not g_app.isRunning() then
if #host > 0 and #password > 0 and #account > 0 and autologin then
addEvent(EnterGame.doLogin)
end
else
if g_game.isOnline() then
enterGame:hide()
end
enterGame:hide()
if g_app.isRunning() and not g_game.isOnline() then
enterGame:show()
end
end
function EnterGame.firstShow()
enterGame:show()
local account = g_crypt.decrypt(g_settings.get('account'))
local password = g_crypt.decrypt(g_settings.get('password'))
local host = g_settings.get('host')
local autologin = g_settings.getBoolean('autologin')
if #host > 0 and #password > 0 and #account > 0 and autologin then
addEvent(EnterGame.doLogin)
end
end