using System; using SafeExamBrowser.Monitoring; using MonoMod; using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.SystemComponents.Contracts; using SafeExamBrowser.SystemComponents.Contracts.Registry; namespace SafeExamBrowser.Monitoring { #pragma warning disable IDE1006 // Naming Styles public class patch_VirtualMachineDetector : VirtualMachineDetector #pragma warning restore IDE1006 // Naming Styles { [MonoModIgnore] public patch_VirtualMachineDetector(ILogger logger, IRegistry registry, ISystemInfo systemInfo) : base(logger, registry, systemInfo) { } //[MonoModOriginal] public extern void orig_VirtualMachineDetector(); //[MonoModConstructor] public void VirtualMachineDetector() //{ // orig_VirtualMachineDetector(); //} #pragma warning disable IDE1006 // Naming Styles [MonoModOriginal] public extern bool orig_IsVirtualMachine(); #pragma warning restore IDE1006 // Naming Styles #pragma warning disable CS0108 // Member hides inherited member; missing new keyword public bool IsVirtualMachine() #pragma warning restore CS0108 // Member hides inherited member; missing new keyword { bool isVirtualMachine = orig_IsVirtualMachine(); return false; } } }