#!/usr/bin/env python3 import base64, re, sys, html def rpp_params(path): txt = open(path, encoding='utf8', errors='ignore').read() lines = txt.split('\n') for i, l in enumerate(lines): if 'soothe2_x64.vst3' in l: break b = [] for l in lines[i + 1:]: if l.strip() == '}': break b.append(l.strip()) raw = re.sub(r'[^A-Za-z0-9+/=]', '', ''.join(b)) raw = raw.rstrip('=') # drop chars until b64 len divisible by 4 (the leading binary header causes odd) while (len(raw) % 4) != 0: raw = raw[:-1] padded = raw + '=' * ((-len(raw)) % 4) dec = base64.b64decode(padded, validate=False) p = dec.find(b'