diff --git a/ProjectLighthouse/Controllers/GameApi/LoginController.cs b/ProjectLighthouse/Controllers/GameApi/LoginController.cs
index 8e95ed4e..20ec33ae 100644
--- a/ProjectLighthouse/Controllers/GameApi/LoginController.cs
+++ b/ProjectLighthouse/Controllers/GameApi/LoginController.cs
@@ -141,7 +141,7 @@ public class LoginController : ControllerBase
await this.database.SaveChangesAsync();
// Create a new room on LBP2/3/Vita
- if (token.GameVersion != GameVersion.LittleBigPlanet1) RoomHelper.CreateRoom(user, token.GameVersion);
+ if (token.GameVersion != GameVersion.LittleBigPlanet1) RoomHelper.CreateRoom(user, token.GameVersion, token.Platform);
return this.Ok
(
diff --git a/ProjectLighthouse/Controllers/GameApi/Matching/MatchController.cs b/ProjectLighthouse/Controllers/GameApi/Matching/MatchController.cs
index f173e1bc..d250fb44 100644
--- a/ProjectLighthouse/Controllers/GameApi/Matching/MatchController.cs
+++ b/ProjectLighthouse/Controllers/GameApi/Matching/MatchController.cs
@@ -81,7 +81,7 @@ public class MatchController : ControllerBase
if (matchData is UpdateMyPlayerData playerData)
{
MatchHelper.SetUserLocation(user.UserId, gameToken.UserLocation);
- Room? room = RoomHelper.FindRoomByUser(user, gameToken.GameVersion, true);
+ Room? room = RoomHelper.FindRoomByUser(user, gameToken.GameVersion, gameToken.Platform, true);
if (playerData.RoomState != null)
if (room != null && Equals(room.Host, user))
@@ -90,7 +90,7 @@ public class MatchController : ControllerBase
if (matchData is FindBestRoom && MatchHelper.UserLocations.Count > 1)
{
- FindBestRoomResponse? response = RoomHelper.FindBestRoom(user, gameToken.GameVersion, gameToken.UserLocation);
+ FindBestRoomResponse? response = RoomHelper.FindBestRoom(user, gameToken.GameVersion, gameToken.Platform, gameToken.UserLocation);
if (response == null) return this.NotFound();
@@ -112,7 +112,7 @@ public class MatchController : ControllerBase
}
// Create a new one as requested
- RoomHelper.CreateRoom(users, gameToken.GameVersion, createRoom.RoomSlot);
+ RoomHelper.CreateRoom(users, gameToken.GameVersion, gameToken.Platform, createRoom.RoomSlot);
}
if (matchData is UpdatePlayersInRoom updatePlayersInRoom)
diff --git a/ProjectLighthouse/Controllers/Website/Debug/RoomVisualizerController.cs b/ProjectLighthouse/Controllers/Website/Debug/RoomVisualizerController.cs
index 854f05c9..cc690c93 100644
--- a/ProjectLighthouse/Controllers/Website/Debug/RoomVisualizerController.cs
+++ b/ProjectLighthouse/Controllers/Website/Debug/RoomVisualizerController.cs
@@ -26,7 +26,7 @@ public class RoomVisualizerController : ControllerBase
return this.NotFound();
#else
List Best room for @version.ToPrettyString(): @text
@room.Players.Count players, state is @room.State, version is @room.RoomVersion.ToPrettyString()
+@room.Players.Count players, state is @room.State, version is @room.RoomVersion.ToPrettyString()on paltform @room.RoomPlatform
Slot type: @room.Slot.SlotType, slot id: @room.Slot.SlotId
@foreach (User player in room.Players) { diff --git a/ProjectLighthouse/Types/Match/Room.cs b/ProjectLighthouse/Types/Match/Room.cs index 1541cb10..63128150 100644 --- a/ProjectLighthouse/Types/Match/Room.cs +++ b/ProjectLighthouse/Types/Match/Room.cs @@ -15,6 +15,9 @@ public class Room [JsonIgnore] public GameVersion RoomVersion { get; set; } + [JsonIgnore] + public Platform RoomPlatform { get; set; } + public RoomSlot Slot { get; set; } public RoomState State { get; set; }