|
|
|
@ -49,12 +49,12 @@
|
|
|
|
|
#include "login_progress_post_thread.h"
|
|
|
|
|
#include "interface_v3/action_handler_base.h"
|
|
|
|
|
#include "item_group_manager.h"
|
|
|
|
|
#include "nel/misc/cmd_args.h"
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG_NEW
|
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace NLMISC;
|
|
|
|
|
using namespace NLNET;
|
|
|
|
|
using namespace NL3D;
|
|
|
|
@ -210,6 +210,7 @@ extern bool IsInRingSession;
|
|
|
|
|
extern void selectTipsOfTheDay (uint tips);
|
|
|
|
|
#define BAR_STEP_TP 2
|
|
|
|
|
|
|
|
|
|
extern NLMISC::CCmdArgs Args;
|
|
|
|
|
|
|
|
|
|
CLoginStateMachine::TEvent CLoginStateMachine::waitEvent()
|
|
|
|
|
{
|
|
|
|
@ -462,12 +463,14 @@ void CLoginStateMachine::run()
|
|
|
|
|
case st_check_patch:
|
|
|
|
|
/// check the data to check if patch needed
|
|
|
|
|
CLoginProgressPostThread::getInstance().step(CLoginStep(LoginStep_PostLogin, "login_step_post_login"));
|
|
|
|
|
if (!ClientCfg.PatchWanted)
|
|
|
|
|
|
|
|
|
|
if (!ClientCfg.PatchWanted || (Args.haveArg("n") && Args.getLongArg("nopatch").front() == "1"))
|
|
|
|
|
{
|
|
|
|
|
// client don't want to be patched !
|
|
|
|
|
_CurrentState = st_display_eula;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
initPatchCheck();
|
|
|
|
|
SM_BEGIN_EVENT_TABLE
|
|
|
|
|
if (isBGDownloadEnabled())
|
|
|
|
@ -1517,4 +1520,3 @@ void CFarTP::farTPmainLoop()
|
|
|
|
|
if(welcomeWindow)
|
|
|
|
|
initWelcomeWindow();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|