mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-21 23:01:03 +00:00
Add Ll as an alias for #! ##plugins
This commit is contained in:
parent
d40178a23f
commit
9e4dff5294
@ -11,6 +11,7 @@ static const char *help_msg_L[] = {
|
||||
"L", "", "show this help",
|
||||
"L", " blah."R_LIB_EXT, "load plugin file",
|
||||
"L-", "duk", "unload core plugin by name",
|
||||
"Ll", "", "list lang plugins (same as #!)",
|
||||
"LL", "", "lock screen",
|
||||
"La", "", "list asm/anal plugins (aL, e asm.arch=" "??" ")",
|
||||
"Lc", "", "list core plugins",
|
||||
@ -235,6 +236,9 @@ static int cmd_plugins(void *data, const char *input) {
|
||||
case 'a': // "La"
|
||||
r_core_cmd0 (core, "e asm.arch=??");
|
||||
break;
|
||||
case 'l': // "Ll"
|
||||
r_core_cmd0 (core, "#!");
|
||||
break;
|
||||
case 'L': // "LL"
|
||||
screenlock (core);
|
||||
break;
|
||||
|
@ -171,7 +171,7 @@ R_API int r_lib_dl_check_filename(const char *file) {
|
||||
R_API int r_lib_run_handler(RLib *lib, RLibPlugin *plugin, RLibStruct *symbol) {
|
||||
RLibHandler *h = plugin->handler;
|
||||
if (h && h->constructor) {
|
||||
IFDBG eprintf ("PLUGIN OK %p fcn %p\n", h, h->constructor);
|
||||
IFDBG eprintf ("PLUGIN LOADED %p fcn %p\n", h, h->constructor);
|
||||
return h->constructor (plugin, h->user, symbol->data);
|
||||
}
|
||||
IFDBG eprintf ("Cannot find plugin constructor\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user