-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVerifierExitCodes.cs
More file actions
28 lines (25 loc) · 1.06 KB
/
VerifierExitCodes.cs
File metadata and controls
28 lines (25 loc) · 1.06 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
using System.Collections.Generic;
namespace ReMod.BundleVerifier
{
public static class VerifierExitCodes
{
private static readonly Dictionary<int, string> ourCodeDescriptions = new()
{
{ 179, "Generic exception (report a bug!)" },
{ 180, "CLI argument parse error (report a bug!)" },
{ 181, "VRChat process suddenly died" },
{ 182, "Loaded bundle was null" },
{ 183, "Loaded bundle did not contain a prefab" },
{ 184, "Prefab instantiation failed" },
{ 185, "Minimum framerate not achieved" },
{ 186, "Over component limit" },
{ -1073741819, "Generic crash (corrupted bundle)" }, // 0xc0000005
{ -2147483645, "Breakpoint crash (corrupted bundle)" }, // 0x80000003
};
internal static string GetExitCodeDescription(int? exitCode)
{
if (!exitCode.HasValue) return "Timed out";
return ourCodeDescriptions.TryGetValue(exitCode.Value, out var result) ? result : "Unknown";
}
}
}