From c22ac451c0dd26dba0521b34f9a00a5f60804f3f Mon Sep 17 00:00:00 2001 From: splootybean Date: Wed, 29 Jul 2026 05:03:04 -0700 Subject: [PATCH] ignore game version --- src/RecNet.Application/Profiles/ProfileService.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/RecNet.Application/Profiles/ProfileService.cs b/src/RecNet.Application/Profiles/ProfileService.cs index 67fe256..469274a 100644 --- a/src/RecNet.Application/Profiles/ProfileService.cs +++ b/src/RecNet.Application/Profiles/ProfileService.cs @@ -120,9 +120,11 @@ public class ProfileService( if (string.IsNullOrWhiteSpace(command.AppVersion)) return LoginProfileResult.Fail("App version is required."); + var ignoreGameVersion = await configService.GetAsync("Profiles:IgnoreGameVersion", true, ct); + var isValidGameVersion = await gameVersionRepository.IsValidAsync(command.AppVersion, ct); - if (!isValidGameVersion) - return LoginProfileResult.Fail("A new update is available! Go to https://recroom.baby to download the latest update."); + if (!isValidGameVersion && !ignoreGameVersion) + return LoginProfileResult.Fail("A new update is available! Go to https://recroom.baby/ to download the latest update."); // 2. Validate Platform Authentication var validator = validators.FirstOrDefault(x => x.PlatformType == command.PlatformType); @@ -197,4 +199,4 @@ public class ProfileService( : null }; } -} +} \ No newline at end of file