tja2fumen.py
: Replace debugPrint with exception for debugging
This commit is contained in:
parent
a8b50c554c
commit
a1f1f8407a
@ -116,11 +116,10 @@ def readFumen(fumenFile, byteOrder=None, debug=False):
|
|||||||
if noteType not in noteTypes:
|
if noteType not in noteTypes:
|
||||||
if debug:
|
if debug:
|
||||||
debugPrint("")
|
debugPrint("")
|
||||||
debugPrint("Error: Unknown note type '{0}' at offset {1}".format(
|
raise ValueError("Error: Unknown note type '{0}' at offset {1}".format(
|
||||||
shortHex(noteType).upper(),
|
shortHex(noteType).upper(),
|
||||||
hex(file.tell() - 0x18))
|
hex(file.tell() - 0x18))
|
||||||
)
|
)
|
||||||
return False
|
|
||||||
|
|
||||||
note["type"] = noteTypes[noteType]
|
note["type"] = noteTypes[noteType]
|
||||||
note["pos"] = noteStruct[1]
|
note["pos"] = noteStruct[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user