-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.cs
More file actions
70 lines (61 loc) · 2.01 KB
/
Form1.cs
File metadata and controls
70 lines (61 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using ModLib;
namespace SEEditor
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
#if FINDBROKEN
int successful = 0;
int failed = 0;
string[] failedPaths = new string[10];
int offset = 0;
foreach (string path in Directory.EnumerateFiles(@"G:\", "*.*"))
{
if (offset == 10)
{
offset = 0;
}
try
{
bool success = SoundEvent.Read(path);
if (success)
{
successful++;
}
else
{
failed++;
failedPaths[offset] = path;
offset++;
}
}
catch (Exception ex)
{
failed++;
failedPaths[offset] = path;
offset++;
}
}
foreach (string path in failedPaths)
{
Console.WriteLine(path);
}
foreach (KeyValuePair<byte, int> entry in Copilot.count)
{
Console.WriteLine(entry.Key + " - " + entry.Value + " - " + Copilot.examples[entry.Key]);
}
Console.WriteLine("Success: {0}", successful);
Console.WriteLine("Failed: {0}", failed);
#endif
// ~2050 failed
//SoundEvent se = SoundEvent.Read(@"A:\Dimensions\EXTRACT\AUDIO\EVENTS\DX_JOKER_ENTRANCE.SOUND_EVENT");
#if DEBUG
Console.WriteLine(SoundEvent.Read(@"G:\WPN_KNIGHTBOSS_FORTCANNON_IMP.SOUND_EVENT"));
#endif
//SoundEvent se = SoundEvent.Read(@"A:\Dimensions\EXTRACT\AUDIO\EVENTS\DX_10RETROGAMESA_CONV01.SOUND_EVENT");
//SoundEvent se = SoundEvent.Read(@"A:\Dimensions\EXTRACT\AUDIO\EVENTS\8BIT_BEEP.SOUND_EVENT");
}
}
}