Skip to content

Commit 994fb05

Browse files
committed
change error codes
1 parent 74101b0 commit 994fb05

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/ModVerify/Verifiers/AudioFilesVerifier.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private void VerifySample(ReadOnlySpan<char> sample, SfxEvent sfxEvent)
132132
var sampleString = sample.ToString();
133133
AddError(VerificationError.Create(
134134
VerifierChain,
135-
VerifierErrorCodes.SampleNotFound,
135+
VerifierErrorCodes.FileNotFound,
136136
$"Audio file '{sampleString}' could not be found.",
137137
VerificationSeverity.Error,
138138
[sfxEvent.Name],

src/ModVerify/Verifiers/VerifierErrorCodes.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ public static class VerifierErrorCodes
1919

2020
public const string DuplicateFound = "DUP00";
2121

22-
public const string SampleNotFound = "WAV00";
23-
public const string SampleNotPCM = "WAV02";
24-
public const string SampleNotMono = "WAV03";
25-
public const string InvalidSampleRate = "WAV04";
26-
public const string InvalidBitsPerSeconds = "WAV05";
22+
public const string SampleNotPCM = "WAV00";
23+
public const string SampleNotMono = "WAV01";
24+
public const string InvalidSampleRate = "WAV02";
25+
public const string InvalidBitsPerSeconds = "WAV03";
2726

2827
public const string InvalidParticleName = "ALO01";
2928

src/PetroglyphTools/PG.StarWarsGame.Engine/PG.StarWarsGame.Engine.csproj

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1818
<LangVersion>preview</LangVersion>
1919
</PropertyGroup>
20+
<ItemGroup>
21+
<Compile Remove="Database\**" />
22+
<EmbeddedResource Remove="Database\**" />
23+
<None Remove="Database\**" />
24+
</ItemGroup>
2025
<ItemGroup>
2126
<PackageReference Include="AlamoEngineTools.PG.StarWarsGame.Files.MEG" Version="2.1.7" />
2227
<PackageReference Include="AlamoEngineTools.PG.StarWarsGame.Files.MTD" Version="2.1.7" />
@@ -43,7 +48,4 @@
4348
<ItemGroup>
4449
<PackageReference Update="SauceControl.InheritDoc" Version="2.0.2" />
4550
</ItemGroup>
46-
<ItemGroup>
47-
<Folder Include="Database\" />
48-
</ItemGroup>
4951
</Project>

0 commit comments

Comments
 (0)