Junior Spellweaver
- Joined
- Jan 5, 2015
- Messages
- 173
- Reaction score
- 194
void r3dInitShaders();
bool testmode = false;
MessageBox(NULL, "Please run WarZ launcher.", g_szApplicationName, MB_OK);
win::hWinIcon = ::LoadIcon(win::hInstance, MAKEINTRESOURCE(IDI_WARZ));
if(strstr(__r3dCmdLine, "-WOUpdatedOK") == NULL && strstr(__r3dCmdLine, "-gna") == NULL && testmode == false) //burakdatlife no-login test
{
MessageBox(NULL, "Please run WarZ launcher.", g_szApplicationName, MB_OK);
ExitProcess(0);
}
r3dError("you should set login as d_login <user> d_password <pwd> in local.ini");
//#ifndef FINAL_BUILD burakdatlife no-login if(Login_PassedUser[0] == 0 || Login_PassedPwd[0] == 0)
{
r3dscpy(Login_PassedUser, d_login->GetString());
r3dscpy(Login_PassedPwd, d_password->GetString());
if(strlen(Login_PassedUser)<2 || strlen(Login_PassedPwd)<2)
{
r3dError("you should set login as d_login <user> d_password <pwd> in local.ini");
// programmers only can do this:
//r3dError("you should set login as '-login <user> -pwd <pwd> in command line");
}
}
//#endif
static void DoExecIni( const char* Path )
static void DoExecIni( const char* Path ){
ExecVarIni( Path );
// always override game settings ini with "local" ini
if(strstr(__r3dCmdLine, "-WOUpdatedOK") == NULL && strstr(__r3dCmdLine, "-gna") == NULL && testmode == true) //burakdatlife no-login test
{
ExecVarIni( "local.ini" );
ExecVarIni("voip.ini");
}
else
{
ExecVarIni( "" );
}
}
#undef REG_VAR_C
bool testmode = false; if(testmode == true)
{
ExecVarIni( "game.ini" );
ExecVarIni( "local.ini" );
}
else
{
ExecVarIni( "1" );
ExecVarIni( "1" );
}
REG_VAR( d_login, "", 0 );
REG_VAR( d_password, "", 0 );
Typical clown show. Much wow!
All what it needs is a shortcut of your .exe file.
D:\Alpha\bin\MiniA.exe -WOUpdatedOk -gna -login AcX@test.dev -pwd your-password
Same poop for debugging your stuff.