Skip to content

Commit

Permalink
loadmap: Keep the plugin by default, for all binary types
Browse files Browse the repository at this point in the history
  • Loading branch information
mefistotelis committed Dec 21, 2024
1 parent 73cc3fc commit 28843cb
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/LoadMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,16 @@ static plugmod_t *idaapi init()
msg("LoadMap: Plugin config file '%s.cfg' read failed: %s.\n", "loadmap", qerrstr());
}

#if IDA_SDK_VERSION >= 800
switch (inf_get_filetype())
#else
switch (inf.filetype)
#endif
{
case f_PE:
case f_COFF:
case f_LE:
case f_LX:
case f_ELF:
case f_EXE:
case f_BIN:
case f_LOADER:
return PLUGIN_KEEP;
case f_ZIP:
return PLUGIN_SKIP;
}
return PLUGIN_SKIP;
return PLUGIN_KEEP;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 28843cb

Please sign in to comment.