Commit a0ef310e authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Cleanup.

parent f5d5ced3
......@@ -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
}
......@@ -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;
}
/*
......
......@@ -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 ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment