2014-07-25 20:42:07 +02:00
|
|
|
#ifndef __TOOLS_H__
|
|
|
|
#define __TOOLS_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Values for DetectInput
|
|
|
|
#define DI_BUTTONS_HELD 0
|
|
|
|
#define DI_BUTTONS_DOWN 1
|
|
|
|
|
2014-07-30 19:22:32 +02:00
|
|
|
#define CHECK_ARG(X) (!strncmp((X), argv[i], sizeof((X))-1))
|
|
|
|
#define CHECK_ARG_VAL(X) (argv[i] + sizeof((X))-1)
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool forceNoAHBPROT;
|
|
|
|
bool debug;
|
|
|
|
int skipIOSlist[513];
|
|
|
|
int skipIOScnt;
|
|
|
|
} arguments_t;
|
|
|
|
|
|
|
|
extern arguments_t arguments;
|
|
|
|
|
2014-07-25 20:42:07 +02:00
|
|
|
void logfile(const char *format, ...);
|
|
|
|
void *allocate_memory(u32 size);
|
|
|
|
int NandStartup(void);
|
|
|
|
void NandShutdown(void);
|
|
|
|
u32 DetectInput(u8 DownOrHeld);
|
2014-07-30 19:22:32 +02:00
|
|
|
void sort(u64 *titles, u32 cnt);
|
|
|
|
void formatDate(u32 date, char ReportBuffer[200][100]);
|
2014-07-25 20:42:07 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|