Skip to content

Commit

Permalink
Cleanup and fix RT_HeavyTests
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Sep 16, 2024
1 parent fc40646 commit fb81580
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions AngelLoader.sln
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ Global
{AF85B663-5D2C-481A-B301-D9047D494C2C}.Release|x86.Build.0 = Release|x86
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|Any CPU.ActiveCfg = Release_Testing|x64
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|Any CPU.Build.0 = Release_Testing|x64
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|x64.ActiveCfg = Release_Testing|x64
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|x64.Build.0 = Release_Testing|x64
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|x64.ActiveCfg = RT_HeavyTests|x64
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|x64.Build.0 = RT_HeavyTests|x64
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|x86.ActiveCfg = RT_HeavyTests|x86
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_HeavyTests|x86.Build.0 = RT_HeavyTests|x86
{AF85B663-5D2C-481A-B301-D9047D494C2C}.RT_StartupOnly|Any CPU.ActiveCfg = RT_StartupOnly|x64
Expand Down
4 changes: 1 addition & 3 deletions AngelLoader/FMInstallAndPlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ private static async Task<bool> InstallInternal(bool fromPlay, bool suppressConf

try
{
Parallel.For(0, threadCount, po, i =>
Parallel.For(0, threadCount, po, _ =>
{
Buffers buffer = new();
BinaryBuffer binaryBuffer = new();
Expand Down Expand Up @@ -2207,7 +2207,6 @@ private static FMInstallResult

int percent = GetPercentFromValue_Int(i + 1, filesCount);


report.ViewItemIndex = viewItemIndex;
report.Text = fmData.FM.Archive;
report.Percent = percent;
Expand Down Expand Up @@ -2334,7 +2333,6 @@ private static FMInstallResult

void ReportProgress(Fen7z.ProgressReport pr)
{

if (!pr.Canceling)
{
report.ViewItemIndex = viewItemIndex;
Expand Down
1 change: 0 additions & 1 deletion AngelLoader/Forms/CustomControls/DarkProgressBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ public void RefreshDarkModeState(bool recreateHandleFirstIfDarkMode = false)
/// Sets the progress bar's value instantly. Avoids the la-dee-dah catch-up-when-I-feel-like-it nature of
/// the progress bar that makes it look annoying and unprofessional.
/// </summary>
/// <param name="value"></param>
[PublicAPI]
public new int Value
{
Expand Down
2 changes: 1 addition & 1 deletion AngelLoader/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private async Task InstallTestSet()

foreach (string fmArchive in fmArchives)
{
FanMission? fm = FMsViewList.FirstOrDefault(x => x.Archive.EqualsI(fmArchive));
FanMission? fm = FMsViewList.Find(x => x.Archive.EqualsI(fmArchive));
if (fm != null)
{
fms.Add(fm);
Expand Down
1 change: 0 additions & 1 deletion AngelLoader/Ini/ConfigIni.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,5 @@ private static void WriteConfigIniInternal(ConfigData config, string fileName)

sw.Append("AutoSetMaxIOThreads=").AppendLine(config.AutoSetMaxIOThreads);
sw.Append("MaxIOThreads=").AppendLine(config.MaxIOThreads);

}
}
1 change: 0 additions & 1 deletion FMScanner/Core/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ public static List<ScannedFMDataAndError>
progress: progress,
cancellationToken: cancellationToken));
});

}
catch (OperationCanceledException)
{
Expand Down

0 comments on commit fb81580

Please sign in to comment.