Skip to content

Commit

Permalink
Default new profile name to launcher username
Browse files Browse the repository at this point in the history
  • Loading branch information
DrakiaXYZ committed Jan 10, 2025
1 parent c334855 commit 89b292e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/src/callbacks/ProfileCallbacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ export class ProfileCallbacks {
* Handle client/game/profile/nickname/reserved
*/
public getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string> {
const fullProfile = this.profileHelper.getFullProfile(sessionID);
if (fullProfile?.info?.username)
{
return this.httpResponse.getBody(fullProfile.info.username);
}

return this.httpResponse.getBody("SPTarkov");
}

Expand Down

0 comments on commit 89b292e

Please sign in to comment.