1
0
forked from mirrors/0ad

cache_adt.h: add peek() routine, move CacheEntry to global scope.

config: add read-only cache option
debug: fix error code
input: remove dependency on file header
lockfree: add LF_ReferenceCounter

This was SVN commit r5448.
This commit is contained in:
janwas
2007-11-10 17:47:25 +00:00
parent 0095685b71
commit 084ba8fcb0
5 changed files with 128 additions and 36 deletions
+2 -3
View File
@@ -16,7 +16,6 @@
#include <stdlib.h>
#include "lib/external_libraries/sdl.h"
#include "lib/res/file/file.h"
const uint MAX_HANDLERS = 8;
static InHandler handler_stack[MAX_HANDLERS];
@@ -93,7 +92,7 @@ LibError in_record(const char* fn)
f = fopen(fn, "wb");
if(!f)
WARN_RETURN(ERR::FILE_ACCESS);
WARN_RETURN(ERR::FAIL);
fwrite(&game_ticks, sizeof(u32), 1, f);
@@ -112,7 +111,7 @@ LibError in_playback(const char* fn)
f = fopen(fn, "rb");
if(!f)
WARN_RETURN(ERR::FILE_ACCESS);
WARN_RETURN(ERR::FAIL);
u32 rec_start_time;
fread(&rec_start_time, sizeof(u32), 1, f);