Пример #1
0
        public void ShowModuleNames()
        {
            List <string> moduleNames = XboxUtils.GetModuleNames();

            foreach (string module in moduleNames)
            {
                Console.WriteLine(module);
            }
        }
Пример #2
0
        public bool IsModuleLoaded(string moduleName)
        {
            try
            {
                List <string> modules = XboxUtils.GetModuleNames();
                foreach (string module in modules)
                {
                    if (moduleName.Contains(module))
                    {
                        return(true);
                    }
                }
            }
            catch (Exception exception)
            {
                XboxUtils.ErrorMessage(exception.Message);
            }

            return(false);
        }