From 3db25afffa20de54decd5f10dbe5def84308aca3 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 10 Oct 2024 13:22:34 +0200 Subject: [PATCH] Implement decai -e model= --- decai/decai.r2.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/decai/decai.r2.js b/decai/decai.r2.js index 5ca1b6f..e4a30f0 100644 --- a/decai/decai.r2.js +++ b/decai/decai.r2.js @@ -78,6 +78,9 @@ You can write your custom decai commands in your ~/.radare2rc file. const [k, v] = arg.split("="); if (!v) { switch (k) { + case "model": + console.log(decaiModel); + break; case "debug": console.log(decaiDebug); break; @@ -122,8 +125,11 @@ You can write your custom decai commands in your ~/.radare2rc file. decaiApi = v; } break; + case "model": + decaiModel = v; + break; case "cache": - decaiCache = v; + decaiCache = v === "true" || v == 1; break; case "ctxfile": decaiContextFile = v;