ARB Patcher: fix up some info about inlining vars in comments, improve UNUSED_PARAM_REGEX

This commit is contained in:
somewhatlurker
2020-07-30 23:15:14 +10:00
parent 6d1d34529e
commit c242317aea
2 changed files with 6 additions and 3 deletions
@@ -10,6 +10,7 @@ def patch_shader(fname, f_lines, game_settings_module=None, enable_print_warning
params = {}
for i in range(0, len(f_lines)):
# this inlining stuff is only really needed for vp, but :shrug:
no_repl = False
m = ATTRIB_REGEX.match(f_lines[i])
@@ -26,6 +27,7 @@ def patch_shader(fname, f_lines, game_settings_module=None, enable_print_warning
no_repl = True
m = OUTPUT_REGEX.match(f_lines[i])
# and not needed at all for PARAMs in the end, but :shrug: again
m = PARAM_REGEX.match(f_lines[i])
while m:
params[m.group(3)] = m.group(4)