Skip to content

Commit

Permalink
Merge pull request #2 from RenNagasaki/test
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
RenNagasaki authored Feb 27, 2025
2 parents 57e2d78 + 0677e12 commit 6882b2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Echokraut Tools/GetScdHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ namespace PrepareAlltalkTrainingData
{
public static class GetScdHelper
{
private static bool loadingExd = false;
private static List<string> logList = new List<string>();
static List<string> batch = new List<string>();

public static void GetExd(ARealmReversed realm, Language language, string saveLocation)
{
loadingExd = true;
realm.Packs.GetPack(new SaintCoinach.IO.PackIdentifier("exd", PackIdentifier.DefaultExpansion, 0)).KeepInMemory = false;
const string CsvFileFormat = "exd/{0}{1}.csv";

Expand Down Expand Up @@ -65,7 +63,6 @@ public static void GetExd(ARealmReversed realm, Language language, string saveLo
}

logList.Add($"{successCount} files exported, {failCount} failed");
loadingExd = false;
}

public static void WorkCutScenes(ARealmReversed realm, Language language, string savePath, string sampleRate)
Expand Down Expand Up @@ -199,7 +196,6 @@ private static bool ExportScdFile(ARealmReversed realm, string filePath, string
return false;

var scdFile = new SaintCoinach.Sound.ScdFile(file);
var count = 0;
for (var i = 0; i < scdFile.ScdHeader.EntryCount; ++i)
{
var e = scdFile.Entries[i];
Expand Down Expand Up @@ -237,7 +233,7 @@ private static bool ExportScdFile(ARealmReversed realm, string filePath, string

return true;
}
catch (Exception ex)
catch
{
return false;
}
Expand Down

0 comments on commit 6882b2c

Please sign in to comment.