diff --git a/osuRepy/helpers/typeSerializer.py b/osuRepy/helpers/typeSerializer.py index d0c13af..12fec4b 100644 --- a/osuRepy/helpers/typeSerializer.py +++ b/osuRepy/helpers/typeSerializer.py @@ -81,7 +81,6 @@ class Serializable: def pack(self, byte_order = BYTEORDER_LITTLE): struct_fmt = byte_order + self.get_struct_fmt() - print(struct_fmt, self.get_value()) return struct.pack(struct_fmt, *self.get_value()) class Serializer: @@ -97,13 +96,6 @@ class Serializer: def flush(self): return b"".join(s.pack() for s in self.stack) - """ - struct_fmt = self.byte_order + b"".join( s.get_struct_fmt() for s in self.stack ) - - print(struct_fmt) - print([ s.get_value() for s in self.stack ]) - return struct.pack(struct_fmt, *[ s.get_value() for s in self.stack ]) - """ def __bytes__(self): return self.flush() diff --git a/osuRepy/replay.py b/osuRepy/replay.py index d1ad5da..150802a 100644 --- a/osuRepy/replay.py +++ b/osuRepy/replay.py @@ -194,4 +194,3 @@ class Replay: with open(filename, "wb") as f: f.write( serializer.flush() ) - print(serializer.flush()) diff --git a/test.osr b/test.osr new file mode 100644 index 0000000..a96e5d9 Binary files /dev/null and b/test.osr differ