Skip to content

Commit

Permalink
use 'vanilla' mode in GET /scores/{score_id}/replay response
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 5, 2022
1 parent 1030729 commit dc660e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/api/domains/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,10 @@ async def api_get_replay(
# create a buffer to construct the replay output
replay_data = bytearray()

mode_vn = row["mode"] % 4

# pack first section of headers.
replay_data += struct.pack("<Bi", row["mode"], 20200207) # TODO: osuver
replay_data += struct.pack("<Bi", mode_vn, 20200207) # TODO: osuver
replay_data += app.packets.write_string(row["map_md5"])
replay_data += app.packets.write_string(row["username"])
replay_data += app.packets.write_string(replay_md5)
Expand Down

1 comment on commit dc660e8

@7ez
Copy link
Contributor

@7ez 7ez commented on dc660e8 Jul 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:trollface:

Please sign in to comment.