Editing Talk:Keys
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 85: | Line 85: | ||
with open(sys.argv[1] + '.bin', 'wb') as g: | with open(sys.argv[1] + '.bin', 'wb') as g: | ||
g.write(hdr+body) | g.write(hdr+body) | ||
Line 356: | Line 276: | ||
EXPECTED_VERSION = 0x10000 | EXPECTED_VERSION = 0x10000 | ||
PARTITION_SIZE = 16 * 1024 * 1024 | PARTITION_SIZE = 16 * 1024 * 1024 | ||
#BLOB_MAGIC = 0x464C457F | |||
BLOB_MAGIC = 0x4B726E00 | BLOB_MAGIC = 0x4B726E00 | ||
SECTOR_SIZE = 0x200 | SECTOR_SIZE = 0x200 | ||
Line 449: | Line 370: | ||
f.seek(PARTITION_SIZE) | f.seek(PARTITION_SIZE) | ||
f.truncate() | f.truncate() | ||
</pre> | </pre> | ||