Skip to content

Commit 7a8f43b

Browse files
asutermoandrew
andauthored
fix auto-spoofer bug. (#352)
Co-authored-by: andrew <andrew@forming.ai>
1 parent 58bb5e0 commit 7a8f43b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

XAU/ViewModels/Pages/AchievementsViewModel.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public async void OnNavigatedTo()
7171
{
7272
if (HomeViewModel.Settings.AutoSpooferEnabled)
7373
{
74-
if (!GameInfoResponse.Titles.Any())
74+
75+
if (!GameInfoResponse.Titles.Any() && !String.IsNullOrWhiteSpace(GameInfoResponse.Xuid))
7576
{
7677
_snackbarService.Show("Error: Game Info Response Contained No Titles", $"There were no titles returned from the API", ControlAppearance.Danger,
7778
new SymbolIcon(SymbolRegular.ErrorCircle24), _snackbarDuration);
@@ -179,7 +180,11 @@ private async void SpoofGame()
179180
HomeViewModel.AutoSpoofedTitleID = TitleIDOverride;
180181
HomeViewModel.SpoofingStatus = 2;
181182
GameInfo = "Auto Spoofing";
182-
GameName = GameInfoResponse.Titles[0].Name;
183+
if (GameInfoResponse.Titles.Any())
184+
{
185+
GameName = GameInfoResponse.Titles[0].Name;
186+
}
187+
183188
await Task.Run(() => Spoofing());
184189
if (HomeViewModel.SpoofingStatus == 1)
185190
{

0 commit comments

Comments
 (0)