From 9ae0675c2ea6f51433e25881e1f561d01ba1326d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20=C3=80lvarez=20i=20Capilla?= Date: Wed, 27 Oct 2021 12:35:06 +0200 Subject: [PATCH] Handle the .r2s extension for visual slides ##visual --- doc/{r2slides.txt => slides.r2s} | 0 libr/core/cmd.c | 3 +++ 2 files changed, 3 insertions(+) rename doc/{r2slides.txt => slides.r2s} (100%) diff --git a/doc/r2slides.txt b/doc/slides.r2s similarity index 100% rename from doc/r2slides.txt rename to doc/slides.r2s diff --git a/libr/core/cmd.c b/libr/core/cmd.c index 5d577886cb..b73b31dcbc 100644 --- a/libr/core/cmd.c +++ b/libr/core/cmd.c @@ -1285,6 +1285,9 @@ R_API bool r_core_run_script(RCore *core, const char *file) { free (shell); } ret = 1; + } else if (!strcmp (ext, "r2s")) { + r_core_visual_slides (core, file); + ret = 1; } else if (!strcmp (ext, "pl")) { char *cmd = cmdstr ("perl"); r_lang_use (core->lang, "pipe");