Skip to content

Commit 5cfc71f

Browse files
author
Peter Kosyh
committed
-m option
1 parent c466b16 commit 5cfc71f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int opt_debug = 0;
4141
static int opt_width = WIDTH;
4242
static char *opt_autoload = NULL;
4343
static int opt_autosave = 1;
44-
44+
static int opt_mmedia = 0;
4545
static int need_restart = 0;
4646
static int need_load = 0;
4747
static int need_save = 0;
@@ -220,6 +220,8 @@ static char *media_fn[] = {
220220
static void mmedia(int t)
221221
{
222222
char *mm;
223+
if (!opt_mmedia)
224+
return;
223225
instead_lock();
224226
instead_function(media_fn[t], NULL);
225227
mm = instead_retval(0);
@@ -262,6 +264,8 @@ int main(int argc, const char **argv)
262264
opt_autosave = 1;
263265
} else if (!strcmp(argv[i], "-x")) {
264266
opt_lua = 1;
267+
} else if (!strcmp(argv[i], "-m")) {
268+
opt_mmedia = 1;
265269
} else if (!strncmp(argv[i], "-d", 2)) {
266270
opt_debug = 1;
267271
reopen_stderr(argv[i] + 2);

0 commit comments

Comments
 (0)