Skip to content

Commit

Permalink
Update file(s): 2024-12-22
Browse files Browse the repository at this point in the history
  • Loading branch information
horsicq committed Dec 21, 2024
1 parent f452931 commit 4d61827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 3 additions & 7 deletions AbstractWidgets/xformatwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ void XFormatWidget::_addStruct(const SPSTRUCT &spStruct)
_spStructRecord.nStructSize = listCommands.at(i).nSize;
_spStructRecord.nStructCount = 1;
_spStructRecord.widgetMode = XFW_DEF::WIDGETMODE_HEADER;
_spStructRecord.type = load_commandIdToType(listCommands.at(i).nId, mach.getArch());
_spStructRecord.type = load_commandIdToType(listCommands.at(i).nId);

_addStruct(_spStructRecord);
}
Expand Down Expand Up @@ -1871,7 +1871,7 @@ void XFormatWidget::_addStruct(const SPSTRUCT &spStruct)
// }
// }

XFW_DEF::TYPE XFormatWidget::load_commandIdToType(qint32 nCommandId, QString sArch)
XFW_DEF::TYPE XFormatWidget::load_commandIdToType(qint32 nCommandId)
{
XFW_DEF::TYPE result = XFW_DEF::TYPE_MACH_load_command;

Expand Down Expand Up @@ -1937,11 +1937,7 @@ XFW_DEF::TYPE XFormatWidget::load_commandIdToType(qint32 nCommandId, QString sAr
} else if (nCommandId == XMACH_DEF::S_LC_LOADFVMLIB) {
result = XFW_DEF::TYPE_MACH_fvm_library_command;
} else if (nCommandId == XMACH_DEF::S_LC_UNIXTHREAD) {
if (sArch == "MC68030") {

} else {
result = XFW_DEF::TYPE_MACH_unix_thread_command;
}
result = XFW_DEF::TYPE_MACH_unix_thread_command;
} else {
result = XFW_DEF::TYPE_MACH_load_command;
}
Expand Down
1 change: 1 addition & 0 deletions AbstractWidgets/xformatwidget_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ enum TYPE {
TYPE_MACH_routines_command_64,
TYPE_MACH_fvm_library_command,
TYPE_MACH_unix_thread_command,

TYPE_MACH_nlist,
TYPE_MACH_nlist_64,
TYPE_MACH_dyld_chained_fixups_header,
Expand Down

0 comments on commit 4d61827

Please sign in to comment.