2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 02:27:43 +00:00

FRME cooking fixes

This commit is contained in:
Jack Andersen
2017-01-20 16:38:03 -10:00
parent f36dfa3be3
commit b949aada83
2 changed files with 105 additions and 96 deletions

View File

@@ -48,14 +48,14 @@ def quitblender():
class PathHasher:
def hashpath32(self, path):
writepipestr(path)
writepipestr(path.encode())
read_str = readpipestr()
if len(read_str) >= 8:
return int(read_str[0:8], 16)
if len(read_str) >= 16:
return int(read_str[0:16], 16) & 0xffffffff
return 0
def hashpath64(self, path):
writepipestr(path)
writepipestr(path.encode())
read_str = readpipestr()
if len(read_str) >= 16:
return int(read_str[0:16], 16)
@@ -245,7 +245,7 @@ def dataout_loop():
elif cmdargs[0] == 'FRAMECOMPILE':
pathOut = cmdargs[1]
version = int(cmdargs[2])
if version != 1:
if version != 0 and version != 1:
writepipestr(b'bad version')
continue