fix: 空渠道检测改用JSONObject.has + 移除gitignore误排除manifest
This commit is contained in:
17
check_files.py
Normal file
17
check_files.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import sys
|
||||
import io
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||||
|
||||
# Check screen2.png
|
||||
data = open(r"D:\Yuzu-GCA\screen2.png", 'rb').read()
|
||||
print(f"screen2.png: Size={len(data)}")
|
||||
print(f"First 20 bytes: {' '.join(f'{b:02X}' for b in data[:20])}")
|
||||
print(f"Is valid PNG: {data[:8] == b'\x89PNG\r\n\x1a\n'}")
|
||||
|
||||
# Also check the fixed files
|
||||
for fname in ['screen_fixed.png', 'screen_fixed2.png']:
|
||||
try:
|
||||
d = open(r"D:\\Yuzu-GCA\\" + fname, 'rb').read()
|
||||
print(f"\n{fname}: Size={len(d)}")
|
||||
except:
|
||||
print(f"\n{fname}: NOT FOUND")
|
||||
Reference in New Issue
Block a user