Skip to content

Commit 2b3cae0

Browse files
committed
Use libhac's IProgressRepost
1 parent 42e2fe3 commit 2b3cae0

13 files changed

+14
-33
lines changed

XbTool/XbTool/Bdat/BdatTables.cs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Linq;
55
using System.Reflection;
66
using System.Text.RegularExpressions;
7+
using LibHac;
78
using XbTool.CodeGen;
89
using XbTool.Common;
910

+1-29
Original file line numberDiff line numberDiff line change
@@ -1,29 +1 @@
1-
namespace XbTool.Common
2-
{
3-
public interface IProgressReport
4-
{
5-
/// <summary>
6-
/// Sets the current value of the <see cref="IProgressReport"/> to <paramref name="value"/>.
7-
/// </summary>
8-
/// <param name="value">The value to set.</param>
9-
void Report(long value);
10-
11-
/// <summary>
12-
/// Adds <paramref name="value"/> to the current value of the <see cref="IProgressReport"/>.
13-
/// </summary>
14-
/// <param name="value">The amount to add.</param>
15-
void ReportAdd(long value);
16-
17-
/// <summary>
18-
/// Sets the maximum value of the <see cref="IProgressReport"/> to <paramref name="value"/>.
19-
/// </summary>
20-
/// <param name="value">The maximum value to set.</param>
21-
void SetTotal(long value);
22-
23-
/// <summary>
24-
/// Logs a message to the <see cref="IProgressReport"/> object.
25-
/// </summary>
26-
/// <param name="message">The message to output.</param>
27-
void LogMessage(string message);
28-
}
29-
}
1+


XbTool/XbTool/Common/ProgressBar.cs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System;
44
using System.Text;
55
using System.Threading;
6+
using LibHac;
67

78
namespace XbTool.Common
89
{

XbTool/XbTool/Common/Textures/Extract.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.IO;
3+
using LibHac;
34
using XbTool.Xb2;
45
using XbTool.Xb2.Textures;
56
using FileInfo = XbTool.Xb2.FileInfo;

XbTool/XbTool/DbGen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
using System.Linq;
33
using System.Text;
44
using System.Collections.Generic;
5+
using LibHac;
56
using Npgsql;
67
using XbTool.Bdat;
78
using XbTool.BdatString;
8-
using XbTool.Common;
99

1010
namespace XbTool
1111
{

XbTool/XbTool/Gimmick/ReadGmk.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33
using System.Reflection;
4+
using LibHac;
45
using XbTool.Bdat;
56
using XbTool.Common;
67
using XbTool.Types;

XbTool/XbTool/HtmlGen.cs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Linq;
44
using System.Net;
55
using CsvHelper;
6+
using LibHac;
67
using XbTool.Bdat;
78
using XbTool.BdatString;
89
using XbTool.CodeGen;

XbTool/XbTool/JsonGen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
22
using System.IO;
33
using System.Linq;
4+
using LibHac;
45
using Newtonsoft.Json.Linq;
56
using XbTool.Bdat;
67
using XbTool.BdatString;
7-
using XbTool.Common;
88

99
namespace XbTool
1010
{

XbTool/XbTool/Options.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using XbTool.Common;
1+
using LibHac;
2+
using XbTool.Common;
23

34
namespace XbTool
45
{

XbTool/XbTool/Serialization/Deserialize.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Reflection;
5+
using LibHac;
56
using XbTool.Bdat;
6-
using XbTool.Common;
77
using XbTool.Types;
88

99
namespace XbTool.Serialization

XbTool/XbTool/Serialization/DeserializeStrings.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using LibHac;
23
using XbTool.Bdat;
34
using XbTool.BdatString;
45
using XbTool.Common;

XbTool/XbTool/Website/Generate.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.IO;
2+
using LibHac;
23
using XbTool.Bdat;
34
using XbTool.BdatString;
45
using XbTool.Common;

XbTool/XbTool/Xb2/FileArchive.cs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Linq;
55
using DotNet.Globbing;
66
using Ionic.Zlib;
7+
using LibHac;
78
using XbTool.Common;
89

910
namespace XbTool.Xb2

0 commit comments

Comments
 (0)