mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-26 13:52:06 +00:00
Add boot safety check, Add payload launching safety check
+ Add version info
This commit is contained in:
parent
472c0e293a
commit
3274d18b83
3 changed files with 11 additions and 5 deletions
|
@ -363,8 +363,9 @@ void filemenu(const char *startpath){
|
||||||
sprintf(temp, "\nSize: %d %s", fileobjects[res - 1].size, sizevalues[tempint - 4]);
|
sprintf(temp, "\nSize: %d %s", fileobjects[res - 1].size, sizevalues[tempint - 4]);
|
||||||
strcpy(explfilemenu[2].name, temp);
|
strcpy(explfilemenu[2].name, temp);
|
||||||
|
|
||||||
if (strstr(fileobjects[res - 1].name, ".bin") != NULL)
|
if (strstr(fileobjects[res - 1].name, ".bin") != NULL && fileobjects[res - 1].size & ISKB){
|
||||||
explfilemenu[7].property = 1;
|
explfilemenu[7].property = 1;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
explfilemenu[7].property = -1;
|
explfilemenu[7].property = -1;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ void clearscreen(){
|
||||||
gfx_clear_grey(0x1B);
|
gfx_clear_grey(0x1B);
|
||||||
gfx_box(0, 0, 719, 15, COLOR_WHITE);
|
gfx_box(0, 0, 719, 15, COLOR_WHITE);
|
||||||
gfx_con_setpos(0, 0);
|
gfx_con_setpos(0, 0);
|
||||||
gfx_printf("%k%KTegraexplorer%k%K\n", COLOR_DEFAULT, COLOR_WHITE, COLOR_WHITE, COLOR_DEFAULT);
|
gfx_printf("%k%KTegraexplorer v1.0.2%k%K\n", COLOR_DEFAULT, COLOR_WHITE, COLOR_WHITE, COLOR_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
int message(char* message, u32 color){
|
int message(char* message, u32 color){
|
||||||
|
|
|
@ -77,9 +77,14 @@ void fillmainmenu(){
|
||||||
void te_main(){
|
void te_main(){
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
dump_biskeys();
|
if (dump_biskeys() == -1){
|
||||||
mount_emmc("SYSTEM", 2);
|
message("Biskeys failed to dump!\nEmmc will not be mounted!", COLOR_RED);
|
||||||
|
mainmenu[1].property = -1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
mount_emmc("SYSTEM", 2);
|
||||||
|
}
|
||||||
|
|
||||||
sd_mounted = sd_mount();
|
sd_mounted = sd_mount();
|
||||||
|
|
||||||
while (1){
|
while (1){
|
||||||
|
|
Loading…
Reference in a new issue