mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
more
This commit is contained in:
parent
de4967ed3c
commit
84ec7fcfff
2 changed files with 7 additions and 9 deletions
|
|
@ -1,7 +1,5 @@
|
|||
namespace Cosmos.Common
|
||||
{
|
||||
public static class KernelPanicTypes
|
||||
{
|
||||
namespace Cosmos.IL2CPU {
|
||||
public static class KernelPanics {
|
||||
public static readonly uint VMT_MethodNotFound = 0x1;
|
||||
public static readonly uint VMT_MethodFoundButAddressInvalid = 0x2;
|
||||
public static readonly uint VMT_MethodAddressesNull = 0x3;
|
||||
|
|
@ -79,7 +79,7 @@ namespace Cosmos.IL2CPU
|
|||
EnableDebug = true;
|
||||
DebugHex("Type", aType);
|
||||
DebugHex("MethodId", aMethodId);
|
||||
Debugger.SendKernelPanic(KernelPanicTypes.VMT_TypeIdInvalid);
|
||||
Debugger.SendKernelPanic(KernelPanics.VMT_TypeIdInvalid);
|
||||
while (true)
|
||||
;
|
||||
}
|
||||
|
|
@ -96,7 +96,7 @@ namespace Cosmos.IL2CPU
|
|||
{
|
||||
EnableDebug = true;
|
||||
DebugHex("MethodIndexes is null for type", aType);
|
||||
Debugger.SendKernelPanic(KernelPanicTypes.VMT_MethodIndexesNull);
|
||||
Debugger.SendKernelPanic(KernelPanics.VMT_MethodIndexesNull);
|
||||
while (true)
|
||||
;
|
||||
}
|
||||
|
|
@ -104,7 +104,7 @@ namespace Cosmos.IL2CPU
|
|||
{
|
||||
EnableDebug = true;
|
||||
DebugHex("MethodAddresses is null for type", aType);
|
||||
Debugger.SendKernelPanic(KernelPanicTypes.VMT_MethodAddressesNull);
|
||||
Debugger.SendKernelPanic(KernelPanics.VMT_MethodAddressesNull);
|
||||
while (true)
|
||||
;
|
||||
}
|
||||
|
|
@ -122,7 +122,7 @@ namespace Cosmos.IL2CPU
|
|||
DebugHex("MethodCount", (uint)xCurrentTypeInfo.MethodCount);
|
||||
DebugHex("MethodAddresses.Length", (uint)xCurrentTypeInfo.MethodAddresses.Length);
|
||||
Debug("Method found, but address is invalid!");
|
||||
Debugger.SendKernelPanic(KernelPanicTypes.VMT_MethodFoundButAddressInvalid);
|
||||
Debugger.SendKernelPanic(KernelPanics.VMT_MethodFoundButAddressInvalid);
|
||||
while (true)
|
||||
;
|
||||
}
|
||||
|
|
@ -143,7 +143,7 @@ namespace Cosmos.IL2CPU
|
|||
DebugHex("Type", aType);
|
||||
DebugHex("MethodId", aMethodId);
|
||||
Debug("Not FOUND!");
|
||||
Debugger.SendKernelPanic(KernelPanicTypes.VMT_MethodNotFound);
|
||||
Debugger.SendKernelPanic(KernelPanics.VMT_MethodNotFound);
|
||||
while (true)
|
||||
;
|
||||
throw new Exception("Cannot find virtual method!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue