Add Ll as an alias for #! ##plugins

This commit is contained in:
pancake 2019-01-11 14:07:01 +01:00
parent d40178a23f
commit 9e4dff5294
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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");