Receive the onlineId earlier so it can be shown in the connection popup.

USB: save the device name after exchanging capability info.
WiFi: save the device name used in the device pairing phrase.
This commit is contained in:
codestation
2013-12-25 21:46:42 -04:30
parent 12b0ad997e
commit e9d46005dc
6 changed files with 32 additions and 15 deletions

View File

@@ -609,12 +609,6 @@ void CmaEvent::vitaEventGetSettingInfo(vita_event_t *event, int eventId)
QSettings settings;
// Always refresh the account name
if(qstrcmp(settingsinfo->current_account.userName, "mtpr3InvalidUserName") != 0) {
// wewt, the Vita didn't go full retard again
settings.setValue("lastOnlineId", settingsinfo->current_account.userName);
}
if(settings.value("lastAccountId").toString() != settingsinfo->current_account.accountId) {
db->setUUID(settingsinfo->current_account.accountId);
// set the database to be updated ASAP