Improve error handling

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2017-02-12 23:07:36 +00:00
parent 3878bf4e23
commit 984192eebe
5 changed files with 116 additions and 30 deletions

View File

@@ -1,5 +1,15 @@
#include <3ds.h>
/* Errors that can't be explained with errno */
#define NDSP_INIT_FAIL 1000
#define DECODER_INIT_FAIL 1001
#define FILE_NOT_SUPPORTED 1002
struct errInfo_t
{
volatile int* error;
Handle* failEvent;
volatile char* errstr;
};
char* ctrmus_strerror(int err);