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:
@@ -92,5 +92,3 @@ def main(script, *args):
|
||||
initAudio()
|
||||
# menu()
|
||||
# getStorage().flush()
|
||||
|
||||
resources.dump()
|
||||
|
@@ -60,9 +60,6 @@ class Messages(object):
|
||||
"message": Formatter(data, msgOffset),
|
||||
}
|
||||
|
||||
print("{}: {}".format(name, self.__messages[name]['message'].getMessage()))
|
||||
|
||||
offset += sz + 4
|
||||
|
||||
|
||||
msg = Messages()
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user