From 89b292e42ba25ea4dd88d80c767e0c086965e4ea Mon Sep 17 00:00:00 2001 From: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:32:00 -0800 Subject: [PATCH] Default new profile name to launcher username --- project/src/callbacks/ProfileCallbacks.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/src/callbacks/ProfileCallbacks.ts b/project/src/callbacks/ProfileCallbacks.ts index 5303ae3b..4203dff2 100644 --- a/project/src/callbacks/ProfileCallbacks.ts +++ b/project/src/callbacks/ProfileCallbacks.ts @@ -118,6 +118,12 @@ export class ProfileCallbacks { * Handle client/game/profile/nickname/reserved */ public getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData { + const fullProfile = this.profileHelper.getFullProfile(sessionID); + if (fullProfile?.info?.username) + { + return this.httpResponse.getBody(fullProfile.info.username); + } + return this.httpResponse.getBody("SPTarkov"); }