mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
datamanager: don't assume bad integrity status if there isn't one
This commit is contained in:
parent
714e9e0319
commit
0bfb1d5b50
1 changed files with 7 additions and 1 deletions
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue