More tools.

This commit is contained in:
2018-10-17 18:27:16 +02:00
parent 701966277f
commit da211328d3
10 changed files with 145 additions and 31 deletions

18
gcdstruct.py Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Prints out the structure of the given GCD file.
"""
from grmn import Gcd, ChkSum
import sys
FILE = sys.argv[1]
print("Opening {}".format(FILE))
gcd = Gcd(FILE)
for i, tlv in enumerate(gcd.struct):
print("#{:03d}: {}".format(i, tlv))