Commit Graph

339 Commits

Author SHA1 Message Date
Henrik Rydgard
a5d961b8d7 Clean up some compiler warnings in adhoc code 2015-01-04 14:09:41 +01:00
Henrik Rydgard
d479fae481 Show some major networking errors on the OSD 2015-01-04 13:04:11 +01:00
Henrik Rydgard
101fe5c481 Don't launch the friend finder thread if the adhoc network init fails.
Adds a flag for network success but doesn't check it anywhere yet..
2015-01-04 13:04:10 +01:00
sum2012
9933ae0c6e netAdhocctlInited should be true when return success
Update back new file

Windows (?) build fix
2015-01-04 13:04:09 +01:00
Bigpet
43b3707ee6 don't initialize adhoc connection when networking is disabled 2015-01-04 13:04:08 +01:00
sum2012
ee6f6d11fc Move Kill AdhocServer Thread to __NetAdhocShutdown 2015-01-04 13:04:08 +01:00
sum2012
aa69489aaf Move built-in AdhocServer Thread to __NetAdhocInit
There are games (ie. Naruto Kizuna Drive) who tried to initialize
network/connect to adhoc server early when the game started, if adhoc
server wasn't ready the player may need to restart the game in order to
connect successfully
2015-01-04 13:04:07 +01:00
sum2012
6ed15ab1f5 Add EnableWlan check 2015-01-04 13:04:06 +01:00
sum2012
21f3d0ecf2 Add built-in AdhocServer option 2015-01-04 13:04:06 +01:00
AdamN
1b8167f9df Changing the socket order checking in AdhocPollSocket a little bit
PS: The way how ppsspp indexing the socket may need to be changed to prevent PDP and PTP socket having the possibility to use the same socket id
2015-01-04 13:04:04 +01:00
sum2012
7c323f8571 Another build fix 2015-01-04 13:04:03 +01:00
AdamN
1c7152db3a Adding Branch opcode to the MAKE_MIPS
Temp revert old version to fix conflict; Implementing built-in PRO Adhoc Server; Add back sceUsbGps

Implementing more Adhoc functions, and some bug fix (i don't remember them anymore)
2015-01-04 13:04:02 +01:00
Lioncash
3610473b78 sceNetAdhoc: Remove unnecessary assignments 2014-12-14 00:10:46 -05:00
Lioncash
4ccb838306 Core: Mark some module functions as static 2014-12-08 04:40:08 -05:00
Lioncash
1d9ace08ae proAdhoc: Make some functions return boolean values.
Also shortens validNetworkName a little.
2014-12-06 14:48:46 -05:00
Unknown W. Brackets
9581de449a Fix some logging in sceNetAdhoc. 2014-07-15 23:35:19 -07:00
AdamN
a98b44d7ab Fixed FF-Type0 from seeing duplicated Host, hopefully this will also fix all Adhoc games that became broken in my 1st patch 2014-06-26 17:50:37 +07:00
AdamN
12ee3d1d39 Fixed Wipeout Pulse unable to see any Host, and should affect many other Adhoc games (was broken in my previous commit) 2014-06-25 20:29:42 +07:00
AdamN
7f7b2a3800 Fixed some bugs (ie. possible of memory leaks) on Adhoc, and implement a few more Adhoc functions. 2014-06-24 23:43:03 +07:00
sum2012
1d36836d2d Add some constant 2014-05-25 10:51:00 +08:00
sum2012
b8e0fc8fa7 Small improve of sceNetAdhocMatching*
Now Metal Slug XX can display online screen.
2014-05-25 07:57:02 +08:00
Bovine
c76548377c Fix nonblocking ptpConnect on Windows
According to
http://msdn.microsoft.com/en-us/library/windows/desktop/ms737625%28v=vs.85%29.aspx
"[...] it is not recommended that applications use multiple calls to
connect to detect connection completion.  If they do, they must be
prepared to handle WSAEINVAL and WSAEWOULDBLOCK error values the same
way that they handle WSAEALREADY, to assure robust operation."

Ideally socket->state should be set to a different state and select()
used to poll sockets until state can be switched to closed or
established.  Changes to socket->state are visible to games as so
probably should not be done without testing.
2014-05-18 06:41:02 -07:00
Unknown W. Brackets
7cde2311e0 Include sceKernelThread.h in less headers. 2014-03-29 17:02:41 -07:00
Unknown W. Brackets
d65af7353b Avoid some ChunkFile includes. 2014-03-15 11:32:57 -07:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00