mirror of
https://github.com/rvtr/unlaunch-installer_dev.git
synced 2026-01-26 13:43:08 -05:00
Try to mark HNAA tmd as writable only if it exists
This commit is contained in:
parent
773fe2b7a5
commit
979ed83640
@ -56,6 +56,7 @@ bool isValidUnlaunchInstallerSize(size_t size)
|
||||
static bool removeHnaaLauncher()
|
||||
{
|
||||
auto* errString = [] -> const char* {
|
||||
if(fileExists(hnaaTmdPath)) {
|
||||
if(!toggleFileReadOnly(hnaaTmdPath, false))
|
||||
{
|
||||
return "\x1B[31mError:\x1B[33m Failed to mark unlaunch's title.tmd as writable\nLeaving as is\n";
|
||||
@ -63,6 +64,7 @@ static bool removeHnaaLauncher()
|
||||
if(!removeIfExists(hnaaTmdPath))
|
||||
{
|
||||
return "\x1B[31mError:\x1B[33m Failed to delete ulnaunch's title.tmd\n";
|
||||
}
|
||||
}
|
||||
if(!removeIfExists("nand:/title/00030017/484e4141/content"))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user