datamanager: don't assume bad integrity status if there isn't one

This commit is contained in:
goaaats 2024-03-21 00:11:25 +01:00
parent 714e9e0319
commit 0bfb1d5b50

View file

@ -3,6 +3,7 @@ using System.Collections.ObjectModel;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using System.Windows.Forms;
using Dalamud.IoC; using Dalamud.IoC;
using Dalamud.IoC.Internal; using Dalamud.IoC.Internal;
@ -76,12 +77,17 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager
dalamud.StartInfo.TroubleshootingPackData); dalamud.StartInfo.TroubleshootingPackData);
this.HasModifiedGameDataFiles = this.HasModifiedGameDataFiles =
tsInfo?.IndexIntegrity is LauncherTroubleshootingInfo.IndexIntegrityResult.Failed or LauncherTroubleshootingInfo.IndexIntegrityResult.Exception; tsInfo?.IndexIntegrity is LauncherTroubleshootingInfo.IndexIntegrityResult.Failed or LauncherTroubleshootingInfo.IndexIntegrityResult.Exception;
if (this.HasModifiedGameDataFiles)
Log.Verbose("Game data integrity check failed!\n{TsData}", dalamud.StartInfo.TroubleshootingPackData);
} }
catch catch
{ {
// ignored // ignored
} }
} }
MessageBox.Show(this.HasModifiedGameDataFiles.ToString());
} }
this.IsDataReady = true; this.IsDataReady = true;
@ -175,6 +181,6 @@ internal sealed class DataManager : IInternalDisposableService, IDataManager
Success, Success,
} }
public IndexIntegrityResult IndexIntegrity { get; set; } public IndexIntegrityResult? IndexIntegrity { get; set; }
} }
} }