mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-11-22 00:31:04 +00:00
Removed some redundant code
This commit is contained in:
parent
9bc26f501a
commit
946d5f57eb
@ -77,10 +77,7 @@ void DisassemblerViewer::setFile(BinaryFile *file) {
|
|||||||
|
|
||||||
QList<quint16> addresses = m_bfm->entryPoints()->getEntryPointAddresses();
|
QList<quint16> addresses = m_bfm->entryPoints()->getEntryPointAddresses();
|
||||||
if (!addresses.count()) { addresses.append(address); }
|
if (!addresses.count()) { addresses.append(address); }
|
||||||
QStringList formattedLines = getDisassemblyStrings(addresses);
|
handleDisassembleRequest(addresses);
|
||||||
|
|
||||||
QByteArray joinedlines = qPrintable(formattedLines.join("\n"));
|
|
||||||
setData(joinedlines);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisassemblerViewer::setFile(RelocatableFile *file) {
|
void DisassemblerViewer::setFile(RelocatableFile *file) {
|
||||||
@ -100,12 +97,7 @@ void DisassemblerViewer::setFile(RelocatableFile *file) {
|
|||||||
|
|
||||||
QList<quint16> addresses = m_bfm->entryPoints()->getEntryPointAddresses();
|
QList<quint16> addresses = m_bfm->entryPoints()->getEntryPointAddresses();
|
||||||
if (!addresses.count()) { addresses.append(address); }
|
if (!addresses.count()) { addresses.append(address); }
|
||||||
QStringList formattedLines = getDisassemblyStrings(addresses);
|
handleDisassembleRequest(addresses);
|
||||||
|
|
||||||
QByteArray joinedlines = qPrintable(formattedLines.join("\n"));
|
|
||||||
QStringList rd = file->decodeRelocatableDict();
|
|
||||||
QByteArray rdlines = qPrintable(rd.join("\n"));
|
|
||||||
setData(joinedlines + "\n\n== Relocation Dictionary ==\n\n" + rdlines);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisassemblerViewer::handleDisassembleRequest(QList<quint16> addresses)
|
void DisassemblerViewer::handleDisassembleRequest(QList<quint16> addresses)
|
||||||
|
Loading…
Reference in New Issue
Block a user