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

@@ -26,20 +26,20 @@ class DeviceCapability
{
public:
explicit DeviceCapability() {}
~DeviceCapability();
bool exchangeInfo(vita_device_t *device);
//TODO: vita_info_t doesn't retrieve this info, update vitamtp to get it
const char *getVersion() {
return "";
return vita_info.responderVersion;
}
const char *getProtocol() {
return "";
int getProtocolVersion() {
return vita_info.protocolVersion;
}
const char *getOnlineId() {
return "PS Vita";
return vita_info.onlineId;
}
const char *getModelInfo() {
return "";
return vita_info.modelInfo;
}
private: