Dump resources to more GNUish formats

In the same run, the old resource file is moved to the cpp-source
directory
This commit is contained in:
Gergely Polonkai
2015-11-05 09:14:10 +01:00
parent 8806876046
commit e220835bd7
106 changed files with 117 additions and 11 deletions

View File

@@ -92,5 +92,3 @@ def main(script, *args):
initAudio()
# menu()
# getStorage().flush()
resources.dump()

View File

@@ -60,9 +60,6 @@ class Messages(object):
"message": Formatter(data, msgOffset),
}
print("{}: {}".format(name, self.__messages[name]['message'].getMessage()))
offset += sz + 4
msg = Messages()

View File

@@ -216,10 +216,4 @@ class ResourcesCollection:
for resource in self.__groups[group]:
func(resource)
def dump(self):
for name, resource in self.__resources.items():
for variant in resource.variants:
with open('resources/' + name, 'wb') as f:
f.write(variant.getData())
resources = None