diff options
| author | Rémi Verschelde | 2016-10-30 19:05:14 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-11-01 00:35:16 +0100 |
| commit | 817dd7ccbb166b27c93706dffc5c0c0d59fd87f8 (patch) | |
| tree | 3fddab3a6a9712c5eda14b262523ff186a90c9e9 /tools/scripts/file-hex-array.py | |
| parent | d4c17700aa2f36f69978beda04e42ff2749de270 (diff) | |
| download | godot-817dd7ccbb166b27c93706dffc5c0c0d59fd87f8.tar.gz godot-817dd7ccbb166b27c93706dffc5c0c0d59fd87f8.tar.zst godot-817dd7ccbb166b27c93706dffc5c0c0d59fd87f8.zip | |
Diffstat (limited to 'tools/scripts/file-hex-array.py')
| -rwxr-xr-x | tools/scripts/file-hex-array.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/scripts/file-hex-array.py b/tools/scripts/file-hex-array.py index 8b7c3edd7..da95c9505 100755 --- a/tools/scripts/file-hex-array.py +++ b/tools/scripts/file-hex-array.py @@ -2,6 +2,7 @@ import binascii import os.path import sys + def tof(filepath): with open(filepath, 'r') as f: content = f.read() @@ -15,6 +16,7 @@ def tof(filepath): print(os.path.basename(filepath) + ".file created.") exit(0) + def toa(filepath): with open(filepath, 'rb') as f: content = f.read() @@ -28,6 +30,7 @@ def toa(filepath): print(os.path.basename(filepath) + ".array created.") exit(0) + def usage(): print("========================================================\n\ #\n\ |
