From abdafc3fdf75b92a7a46eac6e0747f9a536a0447 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 29 May 2024 15:09:09 -0400 Subject: unprotbas: improve -s option. --- unprotbas.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'unprotbas.c') diff --git a/unprotbas.c b/unprotbas.c index 8c8651f..bf1fb7e 100644 --- a/unprotbas.c +++ b/unprotbas.c @@ -652,10 +652,15 @@ void scramble_vars(void) { if(verbose) { i -= vnstart; - if(i) - fprintf(stderr, "replaced %d byte variable name table with EOLs.\n", i); - else + if(i) { + fprintf(stderr, "replaced %d byte variable name table with ", i); + if(varname_char == -1) + fprintf(stderr, "random characters.\n"); + else + fprintf(stderr, "character $%02x\n", varname_char); + } else { die("can't protect variables because there are no variables."); + } } } @@ -670,6 +675,7 @@ void print_help(void) { fprintf(stderr, "-w: write variable names to varnames.txt\n"); fprintf(stderr, "-r: read variable names from varnames.txt\n"); fprintf(stderr, "-pc/-pv/-p: protect code/variables/both\n"); + fprintf(stderr, "-s: shrink variable name table to min size, with -p/-pv\n"); fprintf(stderr, "-xNN: hex code NN for variable names, with -p/-pv\n"); fprintf(stderr, "-xr: random variable names, with -p/-pv\n"); fprintf(stderr, "Use - as a filename to read from stdin and/or write to stdout\n"); -- cgit v1.2.3