mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Support reading patched titles from the SD card
This commit is contained in:
parent
18bb3d8531
commit
346e50b949
@ -156,7 +156,7 @@ namespace hactoolnet
|
|||||||
return;
|
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)
|
if (section == null)
|
||||||
{
|
{
|
||||||
|
@ -160,6 +160,17 @@ namespace libhac
|
|||||||
|
|
||||||
app.AddTitle(title);
|
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)
|
internal static Stream OpenSplitNcaStream(string path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user