Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
vitaquake3
Commits
67fdf4fb
Commit
67fdf4fb
authored
Jul 21, 2019
by
Rinnegatamante
Browse files
Prevent NET_GetPacket spam console.
parent
6eeea01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/psp2/net_psp2.c
View file @
67fdf4fb
...
@@ -385,7 +385,7 @@ qboolean NET_GetPacket(netadr_t *net_from, msg_t *net_message, fd_set *fdr)
...
@@ -385,7 +385,7 @@ qboolean NET_GetPacket(netadr_t *net_from, msg_t *net_message, fd_set *fdr)
{
{
err
=
socketError
;
err
=
socketError
;
if
(
err
!=
SCE_NET_EAGAIN
&&
err
!=
SCE_NET_ECONNRESET
)
if
(
err
!=
SCE_NET_EAGAIN
&&
err
!=
SCE_NET_ECONNRESET
&&
err
<
0
)
Com_Printf
(
"NET_GetPacket: %s
\n
"
,
NET_ErrorString
()
);
Com_Printf
(
"NET_GetPacket: %s
\n
"
,
NET_ErrorString
()
);
}
}
else
else
...
@@ -1064,6 +1064,7 @@ static void *net_memory = NULL;
...
@@ -1064,6 +1064,7 @@ static void *net_memory = NULL;
void
NET_Init
(
void
)
{
void
NET_Init
(
void
)
{
sceSysmoduleLoadModule
(
SCE_SYSMODULE_NET
);
sceSysmoduleLoadModule
(
SCE_SYSMODULE_NET
);
sceSysmoduleLoadModule
(
SCE_SYSMODULE_HTTP
);
SceNetInitParam
initparam
;
SceNetInitParam
initparam
;
int
ret
=
sceNetShowNetstat
();
int
ret
=
sceNetShowNetstat
();
if
(
ret
==
SCE_NET_ERROR_ENOTINIT
)
{
if
(
ret
==
SCE_NET_ERROR_ENOTINIT
)
{
...
@@ -1080,6 +1081,7 @@ void NET_Init( void ) {
...
@@ -1080,6 +1081,7 @@ void NET_Init( void ) {
if
(
ret
<
0
){
if
(
ret
<
0
){
sceNetTerm
();
sceNetTerm
();
free
(
net_memory
);
free
(
net_memory
);
net_memory
=
NULL
;
}
}
NET_Config
(
qtrue
);
NET_Config
(
qtrue
);
...
@@ -1102,7 +1104,9 @@ void NET_Shutdown( void ) {
...
@@ -1102,7 +1104,9 @@ void NET_Shutdown( void ) {
sceNetCtlTerm
();
sceNetCtlTerm
();
sceNetTerm
();
sceNetTerm
();
free
(
net_memory
);
if
(
net_memory
)
free
(
net_memory
);
net_memory
=
NULL
;
sceSysmoduleUnloadModule
(
SCE_SYSMODULE_HTTP
);
sceSysmoduleUnloadModule
(
SCE_SYSMODULE_NET
);
sceSysmoduleUnloadModule
(
SCE_SYSMODULE_NET
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment