Skip to content

Commit

Permalink
WIP on macOS (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed May 10, 2024
1 parent e94a316 commit 1cffbe2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions BKImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,11 +424,14 @@ void CBKImage::PrintItem(BKDirDataItem& fr, const int level, std::wstring dirpat
std::wcout << std::setw(strSpecific.length()) << std::left << strSpec;
}

std::wcout << L" | ";
if (m_bCalcSHA1 && (fr.nAttr & FR_ATTR::DELETED) == 0)
if (m_bCalcSHA1)
{
std::wstring strHash = m_pFloppyImage->CalcFileSHA1(&fr);
std::wcout << strHash;
std::wcout << L" | ";
if ((fr.nAttr & FR_ATTR::DELETED) == 0)
{
std::wstring strHash = m_pFloppyImage->CalcFileSHA1(&fr);
std::wcout << strHash;
}
}
}
else if (m_nListingFormat == LISTING_FORMAT::RAR_LIKE)
Expand Down

0 comments on commit 1cffbe2

Please sign in to comment.