bios_extract: Fix build for and update bruteforce

This commit is contained in:
RichardG867
2022-08-26 12:56:50 -03:00
parent 73f90b293b
commit 3f3f613f6d
2 changed files with 12 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import getopt, os, queue, subprocess, sys, threading, time
algos = ['lh5', 'lzari', 'bcd6f1', 'lzh']
algos = ['lh5', 'lzari', 'lzh', 'notlzss', 'notlzari', 'notlzh']
longest_algo = 0
thread_status = []
term_size = os.get_terminal_size()

View File

@@ -14,6 +14,7 @@
#include "bios_extract.h"
#include "lh5_extract.h"
#include "lzss_extract.h"
#include "phoenix_extract.h"
/* for phoenix.c */
unsigned char *MMapOutputFile(char *filename, int size) { return NULL; }
@@ -137,12 +138,19 @@ int main(int argc, char *argv[])
break;
case 2:
PhoenixBCD6F1Decode(bufs[params[0]].buf + params[1], params[2], bufs[params[3]].buf + params[4], params[5]);
ret = 0;
ret = unlzh(bufs[params[0]].buf + params[1], params[2], bufs[params[3]].buf + params[4], params[5]);
break;
case 3:
ret = unlzh(bufs[params[0]].buf + params[1], params[2], bufs[params[3]].buf + params[4], params[5]);
ret = unnotlzss(bufs[params[0]].buf + params[1], params[2], bufs[params[3]].buf + params[4], params[5], ' ');
break;
case 4:
ret = unnotlzari(bufs[params[0]].buf + params[1], params[2], bufs[params[3]].buf + params[4], params[5], ' ');
break;
case 5:
ret = unnotlzh(bufs[params[0]].buf + params[1], params[2], bufs[params[3]].buf + params[4], params[5]);
break;
}