mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 06:24:30 +00:00
Documentation for fault.c and fault_drawer.c (#1106)
* Mostly document fault and fault_drawer * FaultDrawer printf functions return s32 * Review Suggestions for comments Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> * Some further review suggestions * Further changes from suggestions * Fix Fault_AddClient doc comment * Bug comment for memdump overrun, add more to Fault_PadCallback bug comment * mb -> MB, comment about bss above externs * Fix color codes Co-authored-by: EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com>
This commit is contained in:
parent
cd1d08d34f
commit
c8f4d66b00
42 changed files with 1010 additions and 767 deletions
|
@ -15,8 +15,6 @@ COLORS = [
|
|||
'PURPLE',
|
||||
'CYAN',
|
||||
'WHITE',
|
||||
'LIGHTGRAY',
|
||||
'DARKGRAY',
|
||||
]
|
||||
|
||||
def re_match(exp, text):
|
||||
|
@ -39,11 +37,11 @@ def vt_fmt(text):
|
|||
code = text[i:text.find('m', i)]
|
||||
i += len(code)
|
||||
|
||||
if re_match('^4[0-9];3[0-9]$', code):
|
||||
if re_match('^4[0-7];3[0-7]$', code):
|
||||
chars += 'VT_COL(' + COLORS[int(code[1])] + ', ' + COLORS[int(code[4])] + ')'
|
||||
elif re_match('^4[0-9]$', code):
|
||||
elif re_match('^4[0-7]$', code):
|
||||
chars += 'VT_BGCOL(' + COLORS[int(code[1])] + ')'
|
||||
elif re_match('^3[0-9]$', code):
|
||||
elif re_match('^3[0-7]$', code):
|
||||
chars += 'VT_FGCOL(' + COLORS[int(code[1])] + ')'
|
||||
elif len(code) == 0:
|
||||
chars += 'VT_RST'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue