Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Updated ReMod.Core.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed Mar 19, 2022
1 parent 5c725f5 commit 9618343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ReMod.Core
3 changes: 2 additions & 1 deletion ReModCE/Components/AvatarFavoritesComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using VRC.Core;
using VRC.SDKBase.Validation.Performance.Stats;
using AvatarList = Il2CppSystem.Collections.Generic.List<VRC.Core.ApiAvatar>;
using BuildInfo = ReModCE.Loader.BuildInfo;

namespace ReModCE.Components
{
Expand Down Expand Up @@ -104,7 +105,7 @@ private void InitializeNetworkClient()
var vrHeadset = XRDevice.isPresent ? XRDevice.model : "Desktop";
vrHeadset = vrHeadset.Replace(' ', '_');

_userAgent = $"ReModCE/{vrHeadset}.{Application.version} (Windows NT 10.0; Win64; x64)";
_userAgent = $"{BuildInfo.Name}/{vrHeadset}.{BuildInfo.Version} (Windows NT 10.0; Win64; x64)";

_httpClient.DefaultRequestHeaders.UserAgent.ParseAdd(_userAgent);
}
Expand Down

0 comments on commit 9618343

Please sign in to comment.