Append a .class to the diff file list. Now you should just be able to iterate it and read every file in it directly.

This commit is contained in:
Christian Weeks committed 2012-04-05 10:16:23 -04:00
1 parent e828c1793d
commit ba7f0a8429
1 file changed
+2 -1
+2 -1
View File
@@ -26,6 +26,7 @@ def main():
for row in srg_data['CL']:
classes[row['deobf_name']] = row['obf_name']
print(difflist)
with open(list_file, 'w') as fh:
for diff in difflist.splitlines():
diffrow=diff.strip().split()
@@ -34,7 +35,7 @@ def main():
clazz=classes[clazz]
if clazz.startswith("net/minecraft/src/"):
clazz=clazz[len("net/minecraft/src/"):]
fh.write("minecraft_server/%s\n" %(clazz))
fh.write("minecraft_server/%s.class\n" %(clazz))
if __name__ == '__main__':