Older devices (A16 and earlier): a start-to-finish guide for the Legacy Device Pack

docs/LEGACY_DEVICES.md explains why older chips need an extra texture pack, how to build the astcenc encoder, the three commands that make the pack from your own game files, how to build the App with it and where the folder goes on the phone. The README links to it from the performance section and the status table. astc_pack.py now names the output folder "Legacy Device Pack", the name the App asks for.
This commit is contained in:
jhaizhou
2026-10-13 19:23:29 +08:00
parent 2b270ff76e
commit b50b976523
7 changed files with 159 additions and 5 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ def finalize(packdir):
for b in iter(lambda: f.read(64 << 20), b''): h.update(b)
info = {'name': name, 'size': os.path.getsize(src), 'sha256': h.hexdigest()}
json.dump(info, open(os.path.join(packdir, 'pack.json'), 'w'), ensure_ascii=False, indent=1)
root = os.path.join(packdir, '老机型补充包'); os.makedirs(os.path.join(root, 'data'), exist_ok=True)
root = os.path.join(packdir, 'Legacy Device Pack'); os.makedirs(os.path.join(root, 'data'), exist_ok=True)
dst = os.path.join(root, 'data', name)
if os.path.exists(dst): os.remove(dst)
os.link(src, dst)