コード例 #1
0
ファイル: validity.cs プロジェクト: kwanboy/mcs
        //-------------------------------------------------
        //  validity_checker - constructor
        //-------------------------------------------------
        public validity_checker(emu_options options)
        {
            m_drivlist       = new driver_enumerator(options);
            m_errors         = 0;
            m_warnings       = 0;
            m_print_verbose  = options.verbose();
            m_current_driver = null;
            m_current_config = null;
            m_current_device = null;
            m_current_ioport = null;
            m_validate_all   = false;


            // pre-populate the defstr map with all the default strings
            for (int strnum = 1; strnum < (int)INPUT_STRING.INPUT_STRING_COUNT; strnum++)
            {
                string str = ioport_string_from_index((UInt32)strnum);
                if (!string.IsNullOrEmpty(str))
                {
                    m_defstr_map.insert(str, strnum);
                }
            }
        }
コード例 #2
0
ファイル: audit.cs プロジェクト: kwanboy/mcs
 // construction/destruction
 //-------------------------------------------------
 //  media_auditor - constructor
 //-------------------------------------------------
 public media_auditor(driver_enumerator enumerator)
 {
     m_enumerator = enumerator;
     m_validation = AUDIT_VALIDATE_FULL;
     m_searchpath = null;
 }