summaryrefslogtreecommitdiff
path: root/apps/codecs/dumb/src/allegro/datit.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/dumb/src/allegro/datit.c')
-rw-r--r--apps/codecs/dumb/src/allegro/datit.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/apps/codecs/dumb/src/allegro/datit.c b/apps/codecs/dumb/src/allegro/datit.c
deleted file mode 100644
index 8f58f14234..0000000000
--- a/apps/codecs/dumb/src/allegro/datit.c
+++ /dev/null
@@ -1,62 +0,0 @@
1/* _______ ____ __ ___ ___
2 * \ _ \ \ / \ / \ \ / / ' ' '
3 * | | \ \ | | || | \/ | . .
4 * | | | | | | || ||\ /| |
5 * | | | | | | || || \/ | | ' ' '
6 * | | | | | | || || | | . .
7 * | |_/ / \ \__// || | |
8 * /_______/ynamic \____/niversal /__\ /____\usic /| . . ibliotheque
9 * / \
10 * / . \
11 * datit.c - Integration of IT files with / / \ \
12 * Allegro's datafiles. | < / \_
13 * | \/ /\ /
14 * By entheh. \_ / > /
15 * | \ / /
16 * | ' /
17 * \__/
18 */
19
20#include <allegro.h>
21
22#include "aldumb.h"
23#include "internal/aldumb.h"
24
25
26
27static void *dat_read_it(PACKFILE *f, long size)
28{
29 DUMBFILE *df;
30 DUH *duh;
31
32 (void)size;
33
34 df = dumbfile_open_packfile(f);
35
36 if (!df)
37 return NULL;
38
39 duh = dumb_read_it(df);
40
41 dumbfile_close(df);
42
43 return duh;
44}
45
46
47
48/* dumb_register_dat_it(): tells Allegro about the IT datafile object. If you
49 * intend to load a datafile containing an IT object, you must call this
50 * function first. It is recommended you pass DUMB_DAT_IT, but you may have a
51 * reason to use a different type (perhaps you already have a datafile with
52 * IT files in and they use a different type).
53 */
54void dumb_register_dat_it(long type)
55{
56 register_datafile_object(
57 type,
58 &dat_read_it,
59 &_dat_unload_duh
60 );
61}
62