mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19:05 +02:00
More functions and support for games that use the netdiag
This commit is contained in:
1 parent
553f1d4e4e
commit
0574e6e1d1
4 files changed
+387
-19
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user