mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-16 22:08:28 +01:00
Fix resource depfile generation
I got the escaping wrong so on windows, where the path to the script has characters that need to be escaped, the script wouldn't be found, leaving all dependents stale, triggering rebuilds of all resources.
This commit is contained in:
parent
281dbfa283
commit
2d03fb4b56
@ -34,8 +34,8 @@ extern const unsigned int {symbol_name}_size;
|
||||
def dep_escape(s):
|
||||
t = ''
|
||||
for c in s:
|
||||
if c in [ ' ', '\n', '\\', ':', '$' ]:
|
||||
t += '$'
|
||||
if c in [ ' ', '\\', ':', '$' ]:
|
||||
t += '\\'
|
||||
t += c
|
||||
return t
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user