2 Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo
3 Copyright 2006-2008 Polo
4 Licenced under Academic Free License version 3.0
5 Review Open-Ps2-Loader README & LICENSE files for further details.
7 Some parts of the code are taken from HD Project by Polo
15 typedef struct ioprp
{
19 unsigned int size_out
;
22 inline void _strcpy(char *dst
, const char *src
);
23 inline void _strcat(char *dst
, const char *src
);
24 int _strncmp(const char *s1
, const char *s2
, int length
);
25 int _strcmp(const char *s1
, const char *s2
);
26 char *_strchr(const char *string
, int c
);
27 char *_strrchr(const char * string
, int c
);
28 char *_strtok(char *strToken
, const char *strDelimit
);
29 char *_strstr(const char *string
, const char *substring
);
30 inline int _islower(int c
);
31 inline int _toupper(int c
);
32 int _memcmp(const void *s1
, const void *s2
, unsigned int length
);
33 unsigned int _strtoui(const char* p
);
34 void set_ipconfig(void);
35 u32
*find_pattern_with_mask(u32
*buf
, u32 bufsize
, u32
*pattern
, u32
*mask
, u32 len
);
36 void CopyToIop(void *eedata
, unsigned int size
, void *iopptr
);
37 int Patch_Mod(ioprp_t
*ioprp_img
, const char *name
, void *modptr
, int modsize
);
38 int Build_EELOADCNF_Img(ioprp_t
*ioprp_img
, int have_xloadfile
);
39 inline int XLoadfileCheck(void);
40 inline void delay(int count
);
41 inline void Sbv_Patch(void);