Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for older IDA versions (7.0 - 7.4). #15

Merged
merged 3 commits into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/Quokka.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,37 @@ void idaapi PluginTerminate() {

} // namespace quokka

#if IDA_SDK_VERSION > 740
static plugmod_t* idaapi init() { return new quokka::plugin_ctx_t; }
#else
int idaapi init(void) {
quokka::PluginInit();
return PLUGIN_KEEP;
}

void idaapi term(void)
{
quokka::PluginTerminate();
}

bool idaapi run(size_t args) {
return quokka::PluginRun(args);
};
#endif

plugin_t PLUGIN{
IDP_INTERFACE_VERSION,
#if IDA_SDK_VERSION > 740
PLUGIN_UNL | PLUGIN_MULTI,
init,
nullptr,
nullptr,
#else
PLUGIN_UNL,
init,
term,
run,
#endif
"This module exports binary",
"Quokka help",
"Quokka",
Expand Down