diff options
author | Haru <haru@dotalux.com> | 2015-06-18 02:43:20 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-06-19 13:01:03 +0200 |
commit | 4faa45ac7ed47d8a51068f8323405f4f3df80edb (patch) | |
tree | d64fb2c317d352758c2d1e07a236468f70e4d36c /src/plugins | |
parent | e9223da7d71f28a3b803e2283387960aeeb6d77a (diff) | |
download | hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.tar.gz hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.tar.bz2 hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.tar.xz hercules-4faa45ac7ed47d8a51068f8323405f4f3df80edb.zip |
Improved info/error messages during plugin loading
- Each loaded plugin will now show a status message
- If a plugin loads because of a missing symbol, an error message will
be displayed, mentioning the name of the missing symbol.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/HPMHooking.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/HPMHooking.c b/src/plugins/HPMHooking.c index 4c15b06af..e15cc363d 100644 --- a/src/plugins/HPMHooking.c +++ b/src/plugins/HPMHooking.c @@ -134,13 +134,13 @@ HPExport void server_post_final (void) { HPM_HP_final(); } -HPExport bool Hooked (bool *fr) { +HPExport const char *Hooked (bool *fr) { HPMforce_return = fr; - DB = GET_SYMBOL("DB"); - iMalloc = GET_SYMBOL("iMalloc"); + if (!(DB = GET_SYMBOL("DB"))) return "DB"; + if (!(iMalloc = GET_SYMBOL("iMalloc"))) return "iMalloc"; #include HPM_SYMBOL_INCLUDE HPM_HP_load(); - return true; + return NULL; } |