Show the returned error code on sceNetAdhocctlCreate/Connect/Join on Debug Log

This commit is contained in:
ANR2ME committed 2021-06-21 18:28:37 +07:00
1 parent 15a2373f04
commit fda4744af3
1 file changed
+3 -3
+3 -3
View File
@@ -2715,7 +2715,7 @@ int sceNetAdhocctlCreate(const char *groupName) {
adhocctlCurrentMode = ADHOCCTL_MODE_NORMAL;
adhocConnectionType = ADHOC_CREATE;
return NetAdhocctl_Create(groupName);
return hleLogDebug(SCENET, NetAdhocctl_Create(groupName), "");
}
int sceNetAdhocctlConnect(const char* groupName) {
@@ -2729,7 +2729,7 @@ int sceNetAdhocctlConnect(const char* groupName) {
adhocctlCurrentMode = ADHOCCTL_MODE_NORMAL;
adhocConnectionType = ADHOC_CONNECT;
return NetAdhocctl_Create(groupName);
return hleLogDebug(SCENET, NetAdhocctl_Create(groupName), "");
}
int sceNetAdhocctlJoin(u32 scanInfoAddr) {
@@ -2753,7 +2753,7 @@ int sceNetAdhocctlJoin(u32 scanInfoAddr) {
// TODO: Adhoc Server may need to be changed to differentiate between Host/Create and Join, otherwise it can't support multiple Host using the same Group name, thus causing one of the Host to be confused being treated as Join.
adhocctlCurrentMode = ADHOCCTL_MODE_NORMAL;
adhocConnectionType = ADHOC_JOIN;
return NetAdhocctl_Create(grpName);
return hleLogDebug(SCENET, NetAdhocctl_Create(grpName), "");
}
// Invalid Argument