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
a0ef310e
Commit
a0ef310e
authored
Mar 15, 2018
by
Rinnegatamante
Browse files
Cleanup.
parent
f5d5ced3
Changes
3
Hide whitespace changes
Inline
Side-by-side
code/psp2/con_psp2.c
View file @
a0ef310e
...
...
@@ -55,7 +55,9 @@ CON_Print
==================
*/
void
CON_Print
(
const
char
*
msg
)
{
#ifndef RELEASE
FILE
*
f
=
fopen
(
"ux0:data/ioq3/log.txt"
,
"a+"
);
fwrite
(
msg
,
1
,
strlen
(
msg
),
f
);
fclose
(
f
);
#endif
}
code/psp2/sys_psp2.c
View file @
a0ef310e
...
...
@@ -158,21 +158,7 @@ Sys_RandomBytes
==================
*/
qboolean
Sys_RandomBytes
(
byte
*
string
,
int
len
)
{
FILE
*
fp
;
fp
=
fopen
(
"/dev/urandom"
,
"r"
);
if
(
!
fp
)
return
qfalse
;
setvbuf
(
fp
,
NULL
,
_IONBF
,
0
);
// don't buffer reads from /dev/urandom
if
(
fread
(
string
,
sizeof
(
byte
),
len
,
fp
)
!=
len
)
{
fclose
(
fp
);
return
qfalse
;
}
fclose
(
fp
);
return
qtrue
;
return
qfalse
;
}
/*
...
...
code/renderergl1/tr_init.c
View file @
a0ef310e
...
...
@@ -1205,10 +1205,8 @@ void R_Init( void ) {
Com_Memset
(
&
backEnd
,
0
,
sizeof
(
backEnd
)
);
Com_Memset
(
&
tess
,
0
,
sizeof
(
tess
)
);
#ifndef __PSP2__
if
(
sizeof
(
glconfig_t
)
!=
11332
)
ri
.
Error
(
ERR_FATAL
,
"Mod ABI incompatible: sizeof(glconfig_t) == %u != 11332"
,
(
unsigned
int
)
sizeof
(
glconfig_t
));
#endif
// Swap_Init();
if
(
(
intptr_t
)
tess
.
xyz
&
15
)
{
...
...
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