//------------------------------------------------- // 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 }
//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(); } }
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(); } }
/*------------------------------------------------- * 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(); } } }
/*------------------------------------------------- * 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(); } } }
//------------------------------------------------- // 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 } }
void config_save(config_type cfg_type, util.xml.data_node parentnode) { //throw new emu_unimplemented(); }
void config_load(config_type cfg_type, config_level cfg_lvl, util.xml.data_node parentnode) { throw new emu_unimplemented(); }
/************************************* * * XML file save * *************************************/ int save_xml(emu_file file, config_type which_type) { throw new emu_unimplemented(); }