Support bridge-owned TALK layers and recover free P4a candidate

This commit is contained in:
zenord
2026-10-13 04:35:33 +08:00
parent fcc55b8370
commit a53600db92
22 changed files with 18696 additions and 43 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ def main():
try:
for i,row in enumerate(m['patches']):
raw=pipe.stdout.read(480*848*4);assert len(raw)==480*848*4
if i not in (0,26,43,52,69,96):continue
fixed=(0,26,43,52,69,96) if len(m['patches'])==97 else tuple(sorted({round(k*(len(m['patches'])-1)/5) for k in range(6)}))
if i not in fixed:continue
body=np.frombuffer(raw,np.uint8).reshape(848,480,4)
for level in (0,1,2,3,4):
patch=np.asarray(Image.open(args.runtime/row['levels'][level]['path']).convert('RGBA'))