mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-05 07:44:36 +01:00
allow overriding images
This commit is contained in:
1 parent
23d60a52ef
commit
4027ad0611
2 files changed
+135
-10
No files matched your search
+12
-1
@@ -20,7 +20,9 @@ typedef enum {
|
||||
LOG_WARNING = 2,
|
||||
LOG_INFO = 3,
|
||||
LOG_VERBOSE = 4,
|
||||
LOG_VERBOSE2 = 5
|
||||
LOG_VERBOSE2 = 5,
|
||||
LOG_VERBOSE3 = 6,
|
||||
LOG_VERBOSE4 = 7,
|
||||
} log_level_t;
|
||||
|
||||
typedef struct {
|
||||
@@ -40,6 +42,15 @@ typedef struct {
|
||||
char iboot_ver[0x20];
|
||||
} recvinfo_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t magic; /* 0xd803b376*/
|
||||
unsigned char* ptr; /* pointer to the override file in memory */
|
||||
unsigned int len; /* length of override file */
|
||||
unsigned char* orig_ptr; /* pointer to the overriden file */
|
||||
unsigned int orig_len; /* length of the overriden file */
|
||||
int fd; /* file descriptor of the override file */
|
||||
} override_file_t;
|
||||
|
||||
// set this value to 0 gracefully exit
|
||||
extern int spin;
|
||||
extern unsigned int verbose;
|
||||
|
||||
Reference in new issue
Block a user