mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Prevent creating another GameMode Master, since we don't support more than one Master data, and there is no ID related to Master.
This commit is contained in:
1 parent
73dff0566e
commit
2d5699d62b
1 file changed
+3
@@ -4297,6 +4297,9 @@ static int sceNetAdhocGameModeCreateMaster(u32 dataAddr, int size) {
|
||||
if (size < 0 || !Memory::IsValidAddress(dataAddr))
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOCCTL_INVALID_ARG, "invalid arg");
|
||||
|
||||
if (masterGameModeArea.data)
|
||||
return hleLogError(SCENET, ERROR_NET_ADHOC_ALREADY_CREATED, "already created"); // FIXME: Should we return a success instead? (need to test this on a homebrew)
|
||||
|
||||
hleEatMicro(1000);
|
||||
SceNetEtherAddr localMac;
|
||||
getLocalMac(&localMac);
|
||||
|
||||
Reference in new issue
Block a user