Skip to content

Commit

Permalink
Add PSP platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Sep 2, 2023
1 parent ec82e07 commit 3fb6ebb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Refresh.GameServer/Authentication/TokenPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ public enum TokenPlatform
RPCS3 = 1,
Vita = 2,
Website = 3,
Psp = 4,
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public class AuthenticationEndpoints : EndpointGroup
}

if (game == TokenGame.LittleBigPlanetVita && platform == TokenPlatform.PS3) platform = TokenPlatform.Vita;
else if (game == TokenGame.LittleBigPlanetPSP && platform == TokenPlatform.Psp) platform = TokenPlatform.Psp;

Token token = database.GenerateTokenForUser(user, TokenType.Game, game.Value, platform.Value, GameDatabaseContext.GameTokenExpirySeconds); // 4 hours

Expand Down

0 comments on commit 3fb6ebb

Please sign in to comment.