1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-08 21:21:50 +00:00
TegraExplorer/source/err.h

30 lines
655 B
C
Raw Normal View History

#pragma once
#include <utils/types.h>
typedef struct {
u16 err;
u16 loc;
char* file;
} ErrCode_t;
enum {
2020-12-25 20:16:24 +00:00
TE_ERR_UNIMPLEMENTED = 15,
TE_EXCEPTION_RESET,
TE_EXCEPTION_UNDEFINED,
TE_EXCEPTION_PREF_ABORT,
2020-12-26 00:05:33 +00:00
TE_EXCEPTION_DATA_ABORT,
2020-12-26 21:24:41 +00:00
TE_ERR_SAME_LOC,
2020-12-26 22:41:25 +00:00
TE_ERR_KEYDUMP_FAIL,
TE_ERR_PARTITION_NOT_FOUND,
TE_ERR_PATH_IN_PATH,
2020-12-30 21:51:07 +00:00
TE_ERR_EMMC_READ_FAIL,
TE_ERR_EMMC_WRITE_FAIL,
TE_ERR_NO_SD,
2020-12-31 11:55:26 +00:00
TE_ERR_FILE_TOO_BIG_FOR_DEST,
TE_ERR_MEM_ALLOC_FAIL,
TE_WARN_FILE_EXISTS,
TE_WARN_FILE_TOO_SMALL_FOR_DEST,
};
#define newErrCode(err) (ErrCode_t) {err, __LINE__, __FILE__}
void DrawError(ErrCode_t err);