Skip to content

Commit

Permalink
Hide the party count on LBP1
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed May 12, 2024
1 parent fdfd3ae commit cdf59a9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,15 @@ pub fn runApp(allocator: std.mem.Allocator) !void {
.small_image = null,
.small_text = null,
},
.party = .{
.id = Rpc.Packet.ArrayString(128).create(room.roomId),
.privacy = Rpc.Packet.Presence.Party.Privacy.private,
.size = &[2]i32{ @intCast(room.playerIds.len), 4 },
},
// On LBP1, we dont actually get any detailed room info, so lets hide the party count
.party = if (room.game == .little_big_planet_1)
null
else
.{
.id = Rpc.Packet.ArrayString(128).create(room.roomId),
.privacy = Rpc.Packet.Presence.Party.Privacy.private,
.size = &[2]i32{ @intCast(room.playerIds.len), 4 },
},
};

switch (room.levelType) {
Expand Down

0 comments on commit cdf59a9

Please sign in to comment.