diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-21 18:05:06 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-10-21 18:05:06 +0000 |
| commit | 9acb3e5e713d1ab6b2312aa4cdc7946f85f875d0 (patch) | |
| tree | 93189cbe6fc70c2ca1b5e374a2114156d55e371a /src/engine/e_demorec.c | |
| parent | 142b5ad5143ddcfc9d7fee2563bee753a968f011 (diff) | |
| download | zcatch-9acb3e5e713d1ab6b2312aa4cdc7946f85f875d0.tar.gz zcatch-9acb3e5e713d1ab6b2312aa4cdc7946f85f875d0.zip | |
continued on ban support. cleaned up settings a bit. reworked the datadir autodetection. introduced engine_openfile, engine_getpath and engine_listdir. never use fs_listdir or io_open directly
Diffstat (limited to 'src/engine/e_demorec.c')
| -rw-r--r-- | src/engine/e_demorec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/e_demorec.c b/src/engine/e_demorec.c index aa60f924..5b8885ad 100644 --- a/src/engine/e_demorec.c +++ b/src/engine/e_demorec.c @@ -5,6 +5,7 @@ #include "e_snapshot.h" #include "e_compression.h" #include "e_network.h" +#include "e_engine.h" #include "e_if_other.h" static IOHANDLE record_file = 0; @@ -23,7 +24,7 @@ int demorec_record_start(const char *filename, const char *netversion, const cha if(record_file) return -1; - record_file = io_open(filename, IOFLAG_WRITE); + record_file = engine_openfile(filename, IOFLAG_WRITE); if(!record_file) { @@ -466,7 +467,7 @@ void demorec_playback_unpause() int demorec_playback_load(const char *filename) { - play_file = io_open(filename, IOFLAG_READ); + play_file = engine_openfile(filename, IOFLAG_READ); if(!play_file) { dbg_msg("demorec/playback", "could not open '%s'", filename); |