forked from CTCaer/hekate
hekate: remove sd mount/unmout management for payload launch
Callers manage it anyway. Fixes a case where missing the payload would result to Nyx not relaunching because sd was unmount.
This commit is contained in:
parent
75b7d91abf
commit
10205b17dd
@ -190,9 +190,6 @@ int launch_payload(char *path, bool update, bool clear_screen)
|
|||||||
gfx_clear_grey(0x1B);
|
gfx_clear_grey(0x1B);
|
||||||
gfx_con_setpos(0, 0);
|
gfx_con_setpos(0, 0);
|
||||||
|
|
||||||
if (!sd_mount())
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
FIL fp;
|
FIL fp;
|
||||||
if (f_open(&fp, path, FA_READ))
|
if (f_open(&fp, path, FA_READ))
|
||||||
{
|
{
|
||||||
@ -274,9 +271,6 @@ int launch_payload(char *path, bool update, bool clear_screen)
|
|||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (!update)
|
|
||||||
sd_end();
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user