Skip to content

Commit

Permalink
🐛 游戏已加速情况下启动程序闪退问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
RMBGAME committed May 6, 2024
1 parent 96025c9 commit bbe98f6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ public void LoadGames()
if (GameAcceleratorSettings.MyGames.Any_Nullable())
{
Games.Clear();
foreach (var item in GameAcceleratorSettings.MyGames.Value!.Values)
var temp = GameAcceleratorSettings.MyGames.Value!.Values.ToArray();
foreach (var item in temp)
{
if (item.PicInfo == null)
item.PicInfo = XunYouSDK.GetPicInfo(item.Id);
Expand All @@ -517,7 +518,8 @@ public void LoadGames()
{
Games.Clear();
GameAcceleratorSettings.MyGames.AddRange(games.Select(s => new KeyValuePair<int, XunYouGameViewModel>(s.Id, new XunYouGameViewModel(s))));
foreach (var item in GameAcceleratorSettings.MyGames.Value!.Values)
var temp = GameAcceleratorSettings.MyGames.Value!.Values.ToArray();
foreach (var item in temp)
{
if (item.PicInfo == null)
item.PicInfo = XunYouSDK.GetPicInfo(item.Id);
Expand Down

0 comments on commit bbe98f6

Please sign in to comment.