From f628ee836be71467dc52201474fd812470a249cb Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 27 Feb 2005 16:20:01 +0000 Subject: Restored the original values to the return codes. Since I've been removing a bunch of them, it's better that the remaining ones keep the same value between future releases. (Not that the user will ever get error messages, of course. *cough* :-) svn-id: r16953 --- sword2/defs.h | 48 +++++++++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 27 deletions(-) (limited to 'sword2') diff --git a/sword2/defs.h b/sword2/defs.h index 0dc84fbb64..e7c17a6f83 100644 --- a/sword2/defs.h +++ b/sword2/defs.h @@ -24,44 +24,38 @@ #define SIZE 0x10000 // 65536 items per section #define NuSIZE 0xffff // & with this -// Error codes +// Return codes enum { // Generic error codes - - RD_OK, - RDERR_UNKNOWN, - RDERR_OUTOFMEMORY, - RDERR_INVALIDFILENAME, + RD_OK = 0x00000000, + RDERR_UNKNOWN = 0x00000001, + RDERR_OUTOFMEMORY = 0x00000003, + RDERR_INVALIDFILENAME = 0x00000004, // Drawing error codes - - RDERR_DECOMPRESSION, + RDERR_DECOMPRESSION = 0x00010007, // Sprite drawing error codes - - RDERR_NOTIMPLEMENTED, - RDERR_NOTCLOSED, - RDERR_NOTOPEN, + RDERR_NOTIMPLEMENTED = 0x00060001, + RDERR_NOTCLOSED = 0x00050005, + RDERR_NOTOPEN = 0x00050006, // Menubar error codes - - RDERR_INVALIDMENU, - RDERR_INVALIDPOCKET, - RDERR_INVALIDCOMMAND, + RDERR_INVALIDMENU = 0x00060000, + RDERR_INVALIDPOCKET = 0x00060001, + RDERR_INVALIDCOMMAND = 0x00060002, // Palette fading error codes - - RDERR_FADEINCOMPLETE, + RDERR_FADEINCOMPLETE = 0x00070000, // Sound engine error codes - - RDERR_SPEECHPLAYING, - RDERR_SPEECHNOTPLAYING, - RDERR_INVALIDWAV, - RDERR_FXALREADYOPEN, - RDERR_FXNOTOPEN, - RDERR_INVALIDID + RDERR_SPEECHPLAYING = 0x00080004, + RDERR_SPEECHNOTPLAYING = 0x00080005, + RDERR_INVALIDWAV = 0x00080006, + RDERR_FXALREADYOPEN = 0x00080009, + RDERR_FXNOTOPEN = 0x0008000B, + RDERR_INVALIDID = 0x0008000D }; // Text ids for the control panel etc. @@ -83,10 +77,10 @@ enum { TEXT_REVERSE_STEREO = 0x08EB0015 }; -// always 8 (George object used for Nico player character as well) +// Always 8 (George object used for Nico player character as well) #define CUR_PLAYER_ID 8 -// global variable references +// Global variable references enum { ID = 0, -- cgit v1.2.3