Closed Sembiance closed 9 months ago
In file drxtract/riffxtract.py in def main() you set the value of several globals if pc is set:
drxtract/riffxtract.py
def main()
pc
if sys.argv[1] == 'pc': bit_order_type = 'pc' bit_order = "<" MV93_FILE_TYPE = '39VM' RIFX_FILE_FORMAT = 'XFIR' IMAP_FILE_FORMAT = 'pami' MMAP_FILE_FORMAT = 'pamm' FREE_FILE_FORMAT = 'eerf'
That doesn't actually change the globals though, it just creates new locals with those names and thus extraction fails.
You need to add to the top of def main() the following line:
global bit_order_type, bit_order, MV93_FILE_TYPE, RIFX_FILE_FORMAT, IMAP_FILE_FORMAT, MMAP_FILE_FORMAT, FREE_FILE_FORMAT
Similar errors exist in def main() of casxtract.py
casxtract.py
I didn't continue looking in other methods and files to see if additional errors exist.
Hi @Sembiance, thank you very much for your issue report. I've just created v0.1.3 with the change that you proposed and I think that bug should be fixed now.
Best regards!
Thanks, it works now.
In file
drxtract/riffxtract.py
indef main()
you set the value of several globals ifpc
is set:That doesn't actually change the globals though, it just creates new locals with those names and thus extraction fails.
You need to add to the top of
def main()
the following line:Similar errors exist in
def main()
ofcasxtract.py
I didn't continue looking in other methods and files to see if additional errors exist.