diff options
Diffstat (limited to 'unprotbas.c')
-rw-r--r-- | unprotbas.c | 12 |
1 files changed, 9 insertions, 3 deletions
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"); |