mirror of https://github.com/PCSX2/pcsx2.git
Tools: Fix glyph range generator script
This commit is contained in:
parent
9445018586
commit
f258ea2906
|
@ -99,7 +99,7 @@ def get_pairs(tokens):
|
||||||
with open(dst_file, "r") as f:
|
with open(dst_file, "r") as f:
|
||||||
original = f.read()
|
original = f.read()
|
||||||
updated = re.sub(out_pattern, "\\1 " + get_pairs(tokens) + " \\2", original)
|
updated = re.sub(out_pattern, "\\1 " + get_pairs(tokens) + " \\2", original)
|
||||||
updated = re.sub(out_pf_pattern, "\\1 " + get_pairs(pf_tokens) + " \\2", original)
|
updated = re.sub(out_pf_pattern, "\\1 " + get_pairs(pf_tokens) + " \\2", updated)
|
||||||
if original != updated:
|
if original != updated:
|
||||||
with open(dst_file, "w") as f:
|
with open(dst_file, "w") as f:
|
||||||
f.write(updated)
|
f.write(updated)
|
||||||
|
|
Loading…
Reference in New Issue