mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
Merge branch 'main' into gui
This commit is contained in:
commit
1a3e99640b
21 files changed
+422
-375
No files matched your search
+6
-11
@@ -61,6 +61,11 @@
|
||||
#define palerain_option_setup_partial_root (1 << 4) /* fakefs creating should be partial */
|
||||
#define palerain_option_checkrain_is_clone (1 << 5) /* supplied checkra1n is checkra1n clone */
|
||||
#define palerain_option_rootless_livefs (1 << 6) /* mount root livefs on rootless */
|
||||
/* reserved values */
|
||||
// #define palerain_option_no_ssv (1 << 7) /* no signed system volume */
|
||||
// #define palerain_option_force_fakefs (1 << 8) /* force fakefs, even without SSV */
|
||||
// #define palerain_option_rootless (1 << 9) /* rootless jailbreak */
|
||||
#define palerain_option_clean_fakefs (1 << 10) /* clean fakefs, but does not delete it */
|
||||
|
||||
#ifdef DEV_BUILD
|
||||
#define palerain_option_test1 (1 << 29)
|
||||
@@ -122,18 +127,8 @@ struct kpfinfo {
|
||||
options = (checkrain_option_t)(options & ~option); \
|
||||
} while (0);
|
||||
|
||||
static inline bool checkrain_option_enabled(checkrain_option_t flags, checkrain_option_t opt)
|
||||
static inline bool checkrain_options_enabled(checkrain_option_t flags, checkrain_option_t opt)
|
||||
{
|
||||
if(flags == checkrain_option_failure)
|
||||
{
|
||||
switch(opt)
|
||||
{
|
||||
case checkrain_option_safemode:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return (flags & opt) != 0;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -100,6 +100,8 @@ struct mach_header_64
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef void *(*pthread_start_t)(void *);
|
||||
|
||||
// Keep in sync with Pongo
|
||||
#define PONGO_USB_VENDOR 0x05ac
|
||||
#define PONGO_USB_PRODUCT 0x4141
|
||||
@@ -203,7 +205,7 @@ boyermoore_horspool_memmem(const unsigned char* haystack, size_t hlen,
|
||||
const unsigned char* needle, size_t nlen);
|
||||
|
||||
|
||||
extern void* pongo_usb_callback(void* arg);
|
||||
extern void* pongo_usb_callback(stuff_t* arg);
|
||||
usb_ret_t USBControlTransfer(usb_device_handle_t handle, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, uint32_t wLength, void *data, uint32_t *wLenDone);
|
||||
const char *usb_strerror(usb_ret_t err);
|
||||
int wait_for_pongo(void);
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
#define PI_STEP_CURRENT NEWT_COLORSET_CUSTOM(1)
|
||||
#define PI_STEP_OTHER NEWT_COLORSET_CUSTOM(2)
|
||||
|
||||
#define CHECKBOX_STATE(flags, opt) checkrain_option_enabled(flags, opt) ? '*' : ' '
|
||||
#define CHECKBOX_STATE(flags, opt) checkrain_options_enabled(flags, opt) ? '*' : ' '
|
||||
|
||||
typedef enum tui_screens {
|
||||
ERROR_SCREEN = -1,
|
||||
|
||||
Reference in new issue
Block a user