Wops.. values instead of items >.<
This commit is contained in:
parent
088674041a
commit
65436df5d0
|
@ -46,9 +46,9 @@ def lzma_compress(data):
|
|||
|
||||
class Replay:
|
||||
structure = {
|
||||
"mode": Serializable(osuModes.STANDARD, TYPE_BYTE),
|
||||
"mode": Serializable(osuModes.STANDARD, TYPE_BYTE),
|
||||
"osu_version": Serializable(20181216, TYPE_INT),
|
||||
"beatmap_hash":Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING),
|
||||
"beatmap_hash": Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING),
|
||||
"player_name": Serializable(b"osu!", TYPE_STRING),
|
||||
"score_hash": Serializable(b"d41d8cd98f00b204e9800998ecf8427e", TYPE_STRING),
|
||||
|
||||
|
@ -62,7 +62,7 @@ class Replay:
|
|||
"combo": Serializable(0, TYPE_USHORT),
|
||||
"perfect": Serializable(True, TYPE_BOOL),
|
||||
|
||||
"mods": Serializable(osuMods.NOMOD, TYPE_INT),
|
||||
"mods": Serializable(osuMods.NOMOD, TYPE_INT),
|
||||
|
||||
"lifebar_graph": Serializable(b"0|1,", TYPE_STRING),
|
||||
"timestamp": Serializable(0, TYPE_ULLONG),
|
||||
|
@ -236,7 +236,7 @@ class Replay:
|
|||
|
||||
serializer = Serializer()
|
||||
|
||||
[ serializer.add( struc ) for struc in self.structure.items() ] # Add values to serializer
|
||||
[ serializer.add( struc ) for struc in self.structure.values() ] # Add values to serializer
|
||||
|
||||
with open(filename, "wb") as f:
|
||||
f.write( serializer.flush() )
|
||||
|
|
Loading…
Reference in New Issue
Block a user