More functions and support for games that use the netdiag

This commit is contained in:
Igor Calabria committed 2013-10-29 21:39:45 +00:00
1 parent 553f1d4e4e
commit 0574e6e1d1
4 files changed
+387 -19

No files matched your search

+14 -1
View File
@@ -18,6 +18,11 @@
#include "PSPNetconfDialog.h"
#include "ChunkFile.h"
#include "../Core/MemMap.h"
#include "../Core/HLE/sceNetAdhoc.h"
#define NETCONF_CONNECT_ADHOC 2
#define NETCONF_CREATE_ADHOC 4
#define NETCONF_JOIN_ADHOC 5
PSPNetconfDialog::PSPNetconfDialog() {
}
@@ -40,6 +45,14 @@ int PSPNetconfDialog::Init(u32 paramAddr) {
}
int PSPNetconfDialog::Update(int animSpeed) {
if(request.netAction == NETCONF_CONNECT_ADHOC ||
request.netAction == NETCONF_CREATE_ADHOC ||
request.netAction == NETCONF_JOIN_ADHOC){
if(request.NetconfData != NULL){
Shutdown(true);
return sceNetAdhocctlCreate(request.NetconfData->groupName);
}
}
return 0;
}
@@ -58,4 +71,4 @@ void PSPNetconfDialog::DoState(PointerWrap &p) {
return;
p.Do(request);
}
}