1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 18:26:39 +00:00

AMS 0.15.0 fix + ability to go back from the ID offset selection screen.

I won't even bother to bump the version number.
This commit is contained in:
Pablo Curiel 2020-11-10 00:30:43 -04:00
parent 9ffd2c6804
commit c471e61aff
2 changed files with 10 additions and 2 deletions

View file

@ -321,7 +321,7 @@ bool readNcaDataByContentId(NcmContentStorage *ncmStorage, const NcmContentId *n
{
// Retrieve NCA data using raw IStorage reads
// Fixes NCA access problems with gamecards under low HOS versions when using ncmContentStorageReadContentIdFile()
success = readFileFromSecureHfs0PartitionByName(strchr(nca_path, '/') + 1, offset, outBuf, bufSize);
success = readFileFromSecureHfs0PartitionByName(strrchr(nca_path, '/') + 1, offset, outBuf, bufSize);
if (!success) breaks++;
} else {
// Retrieve NCA data normally

View file

@ -2482,7 +2482,7 @@ bool listDesiredNcaType(NcmContentInfo *titleContentInfos, u32 titleContentInfoC
// Display a selection list
breaks++;
uiDrawString(STRING_X_POS, STRING_Y_POS(breaks), FONT_COLOR_RGB, "Select one of the available %s NCAs from the list below:", getContentType(type));
uiDrawString(STRING_X_POS, STRING_Y_POS(breaks), FONT_COLOR_RGB, "Select one of the available %s NCAs from the list below. Press B to go back.", getContentType(type));
breaks += 2;
while(true)
@ -2546,6 +2546,14 @@ bool listDesiredNcaType(NcmContentInfo *titleContentInfos, u32 titleContentInfoC
{
if (selectedContent < (cnt - 1)) selectedContent++;
}
if (keysDown & KEY_B)
{
breaks = initial_breaks;
uiFill(0, 8 + (breaks * LINE_HEIGHT), FB_WIDTH, FB_HEIGHT - (8 + (breaks * LINE_HEIGHT)), BG_COLOR_RGB);
uiRefreshDisplay();
goto out;
}
}
breaks = initial_breaks;