예제 #1
0
        //-------------------------------------------------
        //  config_load - read and apply data from the
        //  configuration file
        //-------------------------------------------------
        void config_load(config_type cfg_type, util.xml.data_node parentnode)
        {
            // we only care about game files
            if (cfg_type != config_type.GAME)
            {
                return;
            }

            // might not have any data
            if (parentnode == null)
            {
                return;
            }

            throw new emu_unimplemented();
#if false
            // iterate over channel nodes
            for (xml_data_node channelnode = xml_get_sibling(parentnode.child, "channel"); channelnode != null; channelnode = xml_get_sibling(channelnode->next, "channel"))
            {
                mixer_input info;
                if (indexed_mixer_input(xml_get_attribute_int(channelnode, "index", -1), info))
                {
                    float defvol = xml_get_attribute_float(channelnode, "defvol", 1.0f);
                    float newvol = xml_get_attribute_float(channelnode, "newvol", -1000.0f);
                    if (newvol != -1000.0f)
                    {
                        info.stream.set_user_gain(info.inputnum, newvol / defvol);
                    }
                }
            }
#endif
        }
예제 #2
0
        //std::string setup_working_directory();


        void config_load(config_type cfg_type, config_level cfg_level, util.xml.data_node parentnode)
        {
            if ((cfg_type == config_type.SYSTEM) && (parentnode != null))
            {
                throw new emu_unimplemented();
            }
        }
예제 #3
0
파일: image.cs 프로젝트: kwanboy/mcs
        void config_load(config_type cfg_type, util.xml.data_node parentnode)
        {
            util.xml.data_node node;
            string             dev_instance;
            string             working_directory;

            if ((cfg_type == config_type.GAME) && (parentnode != null))
            {
                throw new emu_unimplemented();
            }
        }
예제 #4
0
        /*-------------------------------------------------
        *   config_save - saves out image device
        *   directories to the configuration file
        *  -------------------------------------------------*/
        void config_save(config_type cfg_type, util.xml.data_node parentnode)
        {
            // only save system-specific data
            if (cfg_type == config_type.SYSTEM)
            {
                foreach (device_image_interface image in new image_interface_enumerator(machine().root_device()))
                {
                    string dev_instance = image.instance_name();

                    throw new emu_unimplemented();
                }
            }
        }
예제 #5
0
파일: image.cs 프로젝트: kwanboy/mcs
        /*-------------------------------------------------
        *   config_save - saves out image device
        *   directories to the configuration file
        *  -------------------------------------------------*/
        void config_save(config_type cfg_type, util.xml.data_node parentnode)
        {
            util.xml.data_node node;
            string             dev_instance;

            /* only care about game-specific data */
            if (cfg_type == config_type.GAME)
            {
                foreach (device_image_interface image in new image_interface_iterator(machine().root_device()))
                {
                    dev_instance = image.instance_name();

                    throw new emu_unimplemented();
                }
            }
        }
예제 #6
0
        //-------------------------------------------------
        //  config_save - save data to the configuration
        //  file
        //-------------------------------------------------
        void config_save(config_type cfg_type, util.xml.data_node parentnode)
        {
            // we only care about game files
            if (cfg_type != config_type.GAME)
            {
                return;
            }

            // iterate over mixer channels
            if (parentnode != null)
            {
                throw new emu_unimplemented();
#if false
                for (int mixernum = 0; ; mixernum++)
                {
                    mixer_input info;
                    if (!indexed_mixer_input(mixernum, info))
                    {
                        break;
                    }

                    float newvol = info.stream.user_gain(info.inputnum);

                    if (newvol != 1.0f)
                    {
                        xml_data_node channelnode = xml_add_child(parentnode, "channel", null);
                        if (channelnode != null)
                        {
                            xml_set_attribute_int(channelnode, "index", mixernum);
                            xml_set_attribute_float(channelnode, "newvol", newvol);
                        }
                    }
                }
#endif
            }
        }
예제 #7
0
 void config_save(config_type cfg_type, util.xml.data_node parentnode)
 {
     //throw new emu_unimplemented();
 }
예제 #8
0
 void config_load(config_type cfg_type, config_level cfg_lvl, util.xml.data_node parentnode)
 {
     throw new emu_unimplemented();
 }
예제 #9
0
파일: config.cs 프로젝트: kwanboy/mcs
 /*************************************
 *
 *  XML file save
 *
 *************************************/
 int save_xml(emu_file file, config_type which_type)
 {
     throw new emu_unimplemented();
 }