mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 23:14:34 +01:00
Update StaticDataParser.cs
This commit is contained in:
@@ -219,8 +219,6 @@ namespace nksrv.StaticInfo
|
||||
#endregion
|
||||
private async Task<T> LoadZip<T>(string entry, ProgressBar bar)
|
||||
{
|
||||
var st = new Stopwatch();
|
||||
st.Start();
|
||||
var mainQuestData = MainZip.GetEntry(entry);
|
||||
if (mainQuestData == null) throw new Exception(entry + " does not exist in static data");
|
||||
|
||||
@@ -234,16 +232,10 @@ namespace nksrv.StaticInfo
|
||||
currentFile++;
|
||||
bar.Report((double)currentFile / totalFiles);
|
||||
|
||||
st.Stop();
|
||||
Console.WriteLine($"LoadingNew {entry} took " + st.Elapsed);
|
||||
|
||||
return questdata;
|
||||
}
|
||||
private async Task<JArray> LoadZip(string entry, ProgressBar bar)
|
||||
{
|
||||
var st = new Stopwatch();
|
||||
st.Start();
|
||||
|
||||
var mainQuestData = MainZip.GetEntry(entry);
|
||||
if (mainQuestData == null) throw new Exception(entry + " does not exist in static data");
|
||||
|
||||
@@ -260,9 +252,6 @@ namespace nksrv.StaticInfo
|
||||
currentFile++;
|
||||
bar.Report((double)currentFile / totalFiles);
|
||||
|
||||
st.Stop();
|
||||
Console.WriteLine($"LoadingOld {entry} took " + st.Elapsed);
|
||||
|
||||
return records;
|
||||
}
|
||||
int totalFiles = 12;
|
||||
|
||||
Reference in New Issue
Block a user