2ee739cc |
1 | /* |
2 | * resources.h |
3 | * |
4 | * [Generated from resources, 25 September 1996] |
5 | */ |
6 | |
7 | #if !defined(__CC_NORCROFT) || !defined(__arm) |
8 | #error You must use the Norcroft ARM Compiler for Sapphire programs |
9 | #endif |
10 | |
11 | #pragma include_only_once |
12 | #pragma force_top_level |
13 | |
14 | #ifndef __resources_h |
15 | #define __resources_h |
16 | |
17 | #ifndef __sapphire_h |
18 | #include "sapphire.h" |
19 | #endif |
20 | |
21 | /*----- Overview ----------------------------------------------------------* |
22 | * |
23 | * Functions provided: |
24 | * |
25 | * resource_init |
26 | * resource_find |
27 | */ |
28 | |
29 | /* --- resources_init --- * |
30 | * |
31 | * On entry: -- |
32 | * |
33 | * On exit: -- |
34 | * |
35 | * Use: Initialises the shared resource system, setting up the |
36 | * link to the SapphRes DLL. Note that this initialisation is |
37 | * /not/ performed automatically. |
38 | */ |
39 | |
40 | extern routine resources_init; |
41 | |
42 | /* --- resources_find --- * |
43 | * |
44 | * On entry: R0 == resource code |
45 | * R1 == pointer to name (only for rsType_template) |
46 | * |
47 | * On exit: CS if found, and |
48 | * R0 == pointer to resource |
49 | * R1 == pointer to resource limit (only for rsType_message) |
50 | * else CC and |
51 | * R0,R1 preserved |
52 | * |
53 | * Use: Locates resources in the shared resource DLL. |
54 | */ |
55 | |
56 | extern routine resources_find; |
57 | |
58 | /*----- Resource types ----------------------------------------------------*/ |
59 | |
60 | #define rsType_sprite 0 |
61 | #define rsType_message 1 |
62 | #define rsType_template 2 |
63 | |
64 | /*----- That's all, folks -------------------------------------------------*/ |
65 | |
66 | #endif |