Remove diagnostic script, add to .gitignore

This commit is contained in:
2026-06-01 01:56:14 +02:00
parent 3f8f5f53d1
commit 86e7ae8ba9
2 changed files with 1 additions and 15 deletions
+1
View File
@@ -7,3 +7,4 @@ config.ini
*.tar.gz
*.zip
_search_save_type.py
-15
View File
@@ -1,15 +0,0 @@
import struct, os
samples = 'samples'
for f in sorted(os.listdir(samples)):
if not f.endswith('.sav'): continue
path = os.path.join(samples, f)
d = open(path, 'rb').read()
i = d.find(b'Elapsed')
if i >= 0:
for off in range(8, 50):
try:
v = struct.unpack_from('<d', d, i+off)[0]
if 60 < v < 1000000:
h = int(v//3600); m = int((v%3600)//60)
print(f'{f}: {h}h{m}m')
except: pass