chore: move NFC tags URL to SharedConstants.cs
This commit is contained in:
parent
462c93e1ff
commit
be249f7bdc
2 changed files with 4 additions and 2 deletions
|
|
@ -5,5 +5,7 @@ namespace Ryujinx.Common
|
||||||
public const string DefaultLanPlayHost = "ldn.ryujinx.app";
|
public const string DefaultLanPlayHost = "ldn.ryujinx.app";
|
||||||
public const short LanPlayPort = 30456;
|
public const short LanPlayPort = 30456;
|
||||||
public const string DefaultLanPlayWebHost = DefaultLanPlayHost;
|
public const string DefaultLanPlayWebHost = DefaultLanPlayHost;
|
||||||
|
|
||||||
|
public const string AmiiboTagsUrl = "https://raw.githubusercontent.com/Ryubing/Nfc/refs/heads/main/tags.json";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -442,7 +442,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HttpResponseMessage response = await _httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Head, "https://raw.githubusercontent.com/Ryubing/Nfc/refs/heads/main/tags.json"));
|
HttpResponseMessage response = await _httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Head, SharedConstants.AmiiboTagsUrl));
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
|
|
@ -461,7 +461,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HttpResponseMessage response = await _httpClient.GetAsync("https://raw.githubusercontent.com/Ryubing/Nfc/refs/heads/main/tags.json");
|
HttpResponseMessage response = await _httpClient.GetAsync(SharedConstants.AmiiboTagsUrl);
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue