mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Support reading patched titles from the SD card
This commit is contained in:
parent
18bb3d8531
commit
346e50b949
2 changed files with 12 additions and 1 deletions
|
@ -156,7 +156,7 @@ namespace hactoolnet
|
|||
return;
|
||||
}
|
||||
|
||||
var section = title.MainNca.Sections.FirstOrDefault(x => x.Type == SectionType.Romfs);
|
||||
var section = title.MainNca.Sections.FirstOrDefault(x => x?.Type == SectionType.Romfs || x?.Type == SectionType.Bktr);
|
||||
|
||||
if (section == null)
|
||||
{
|
||||
|
|
|
@ -160,6 +160,17 @@ namespace libhac
|
|||
|
||||
app.AddTitle(title);
|
||||
}
|
||||
|
||||
foreach (var app in Applications.Values)
|
||||
{
|
||||
var main = app.Main?.MainNca;
|
||||
var patch = app.Patch?.MainNca;
|
||||
|
||||
if (main != null)
|
||||
{
|
||||
patch?.SetBaseNca(main);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal static Stream OpenSplitNcaStream(string path)
|
||||
|
|
Loading…
Reference in a new issue