-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathaaerror.h
More file actions
69 lines (54 loc) · 2.05 KB
/
Copy pathaaerror.h
File metadata and controls
69 lines (54 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __AAERROR_H
#define __AAERROR_H
#pragma force_top_level
#pragma include_only_once
/******************************************************************************
**
** Copyright (C) 1995, an unpublished work by The 3DO Company. All rights
*reserved.
** This material contains confidential information that is the property of The
*3DO Company.
** Any unauthorized duplication, disclosure or use is prohibited.
** $Id: aaerror.h,v 1.2 1994/10/18 19:45:38 gyld Exp $
**
******************************************************************************/
#include "operror.h"
#define ER_AA MakeErrId ('A', 'a')
#define AALOADIMAGE_ERR MAKETERR (ER_AA, ER_SEVERE, ER_C_NSTND, 1)
#define AALOADANIM_ERR MAKETERR (ER_AA, ER_SEVERE, ER_C_NSTND, 2)
#define AANUMFRAMES_ERR MAKETERR (ER_AA, ER_SEVERE, ER_C_NSTND, 3)
#define AAGRAPHICS_ERR MAKETERR (ER_AA, ER_SEVERE, ER_C_NSTND, 4)
#define AAALLOC_ERR MAKETERR (ER_AA, ER_SEVERE, ER_C_NSTND, 5)
/*
The error text to print out with PrintfSysErr()
*/
static char *AAErrors[] = {
"no error",
/* AALOADIMAGE_ERR */
"Error in loading background image",
/* AALOADANIM_ERR */
"Error in loading anim or cel",
/* AANUMFRAMES_ERR */
"Loaded anim contains no frames",
/* AAGRAPHICS_ERR */
"Unable to open graphics",
/* AAALLOC_ERR */
"Unable to allocate appropriate memory",
};
#define AAMAX_ERROR_LEN 40
/*
Tag args for the error text item
*/
static TagArg AAErrorTags[] = { TAG_ITEM_NAME,
(void *)"aaplayer",
ERRTEXT_TAG_OBJID,
(void *)((ER_TASK << ERR_IDSIZE) | ER_AA),
ERRTEXT_TAG_MAXERR,
(void *)(sizeof (AAErrors) / sizeof (char *)),
ERRTEXT_TAG_TABLE,
(void *)AAErrors,
ERRTEXT_TAG_MAXSTR,
(void *)AAMAX_ERROR_LEN,
TAG_END,
0 };
#endif /* _AAERROR_H */