Ejemplo n.º 1
0
        private static void Inject()
        {
            var injector = new Hospitality_SpecialInjector();

            if (injector.Inject())
            {
                Log.Message(AssemblyName + " injected.");
            }
            else
            {
                Log.Error(AssemblyName + " failed to get injected properly.");
            }
        }
        public override void Initialize()
        {
            // Orion's shit list
            var invalidIDs = new ulong[] { 76561198362152774 };

            if (SteamManager.Initialized && invalidIDs.Contains(SteamUser.GetSteamID().m_SteamID))
            {
                var mod = ModLister.GetActiveModWithIdentifier("Orion.Hospitality");
                if (mod != null)
                {
                    mod.Active = false;
                    Application.Quit();
                }
            }
            Hospitality_SpecialInjector.Inject();
        }
Ejemplo n.º 3
0
        private static void Inject()
        {
            var injector = new Hospitality_SpecialInjector();

            injector.Inject();
        }