-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathorbiterror.h
More file actions
81 lines (64 loc) · 2.13 KB
/
Copy pathorbiterror.h
File metadata and controls
81 lines (64 loc) · 2.13 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
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef __ORBITERROR_H
#define __ORBITERROR_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: orbiterror.h,v 1.2 1994/10/18 19:57:48 gyld Exp $
**
******************************************************************************/
#include "operror.h"
#define ER_ORBIT MakeErrId ('O', 'r')
#define ORBITLOADIMAGE_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 1)
#define ORBITLOADANIM_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 2)
#define ORBITNUMFRAMES_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 3)
#define ORBITGRAPHICS_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 4)
#define ORBITALLOC_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 5)
#define ORBITLOADSOUND_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 6)
#define ORBITAUDIOCTX_ERR MAKETERR (ER_ORBIT, ER_SEVERE, ER_C_NSTND, 7)
/*
The error text to print out with PrintfSysErr()
*/
static char *OrbitErrors[] =
{
"no error",
/* ORBITLOADIMAGE_ERR */
"Error in loading background image",
/* ORBITLOADANIM_ERR */
"Error in loading anim or cel",
/* ORBITNUMFRAMES_ERR */
"Loaded anim contains no frames",
/* ORBITGRAPHICS_ERR */
"Unable to open graphics",
/* ORBITALLOC_ERR */
"Unable to allocate appropriate memory",
/* ORBITLOADSOUND_ERR */
"Unable to load sound effect",
/* ORBITAUDIOCTX_ERR */
"Unable to allocate audio context",
};
#define ORBITMAX_ERROR_LEN 40
/*
Tag args for the error text item
*/
static TagArg OrbitErrorTags[] =
{
TAG_ITEM_NAME,
(void *)"3doorbit",
ERRTEXT_TAG_OBJID,
(void *)((ER_TASK << ERR_IDSIZE) | ER_ORBIT),
ERRTEXT_TAG_MAXERR,
(void *)(sizeof (OrbitErrors) / sizeof (char *)),
ERRTEXT_TAG_TABLE,
(void *)OrbitErrors,
ERRTEXT_TAG_MAXSTR,
(void *)ORBITMAX_ERROR_LEN,
TAG_END,
0
};
#endif /* _ORBITERROR_H */