void Player::ResponseSignIn(bool success, int pid) { if(success) { mPlayerId = pid; RequestLogin(); } else { std::string logString = "SignIn Fail With Name : " + mPlayerName; EVENT_LOG(logString.c_str(), 0); std::cout << logString << std::endl; RequestSignIn(mPlayerName + "1"); } }
/* * LoginSendInfo: Send login information (username, password, etc.) to server. */ void LoginSendInfo(void) { unsigned char buf[ENCRYPT_LEN + 1]; GetSystemStats(&sysinfo); // Encrypt password MDString(config.password, buf); buf[ENCRYPT_LEN] = 0; debug(("Got partner code of %d.\n", (sysinfo.reserved & 0xFF00) >> 8)); // Load the RSB hash from LoginSendInfo to ensure we have an up-to-date hash. LoadRSBHash(); RequestLogin(MAJOR_REV, MINOR_REV, sysinfo.platform, sysinfo.platform_major, sysinfo.platform_minor, sysinfo.memory, sysinfo.chip, sysinfo.screen_width, sysinfo.screen_height, sysinfo.color_depth, sysinfo.bandwidth, sysinfo.reserved, config.username, buf, GetRSBHash()); }