Support bridge-owned TALK layers and recover free P4a candidate
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user