src/emu/machine.c
| r9069 | r9070 | |
| 332 | 332 | // start up the devices |
| 333 | 333 | m_devicelist.start_all(); |
| 334 | 334 | |
| 335 | | // finish image devices init process |
| 336 | | image_postdevice_init(this); |
| 337 | | |
| 338 | 335 | // if we're coming in with a savegame request, process it now |
| 339 | 336 | const char *savegame = options_get_string(&m_options, OPTION_STATE); |
| 340 | 337 | if (savegame[0] != 0) |
| r9069 | r9070 | |
| 977 | 974 | |
| 978 | 975 | |
| 979 | 976 | //------------------------------------------------- |
| 980 | | // static_set_machine_start - set the legacy |
| 981 | | // machine start callback in the device |
| 977 | // static_set_machine_start - set the legacy |
| 978 | // machine start callback in the device |
| 982 | 979 | // configuration |
| 983 | 980 | //------------------------------------------------- |
| 984 | 981 | |
| r9069 | r9070 | |
| 989 | 986 | |
| 990 | 987 | |
| 991 | 988 | //------------------------------------------------- |
| 992 | | // static_set_palette_init - set the legacy |
| 993 | | // palette init callback in the device |
| 989 | // static_set_palette_init - set the legacy |
| 990 | // palette init callback in the device |
| 994 | 991 | // configuration |
| 995 | 992 | //------------------------------------------------- |
| 996 | 993 | |
| r9069 | r9070 | |
| 1001 | 998 | |
| 1002 | 999 | |
| 1003 | 1000 | //------------------------------------------------- |
| 1004 | | // static_set_video_update - set the legacy |
| 1005 | | // video update callback in the device |
| 1001 | // static_set_video_update - set the legacy |
| 1002 | // video update callback in the device |
| 1006 | 1003 | // configuration |
| 1007 | 1004 | //------------------------------------------------- |
| 1008 | 1005 | |
| r9069 | r9070 | |
| 1013 | 1010 | |
| 1014 | 1011 | |
| 1015 | 1012 | //------------------------------------------------- |
| 1016 | | // rom_region - return a pointer to the ROM |
| 1013 | // rom_region - return a pointer to the ROM |
| 1017 | 1014 | // regions specified for the current game |
| 1018 | 1015 | //------------------------------------------------- |
| 1019 | 1016 | |
| r9069 | r9070 | |
| 1175 | 1172 | // reschedule ourselves to be last |
| 1176 | 1173 | if (next() != NULL) |
| 1177 | 1174 | throw device_missing_dependencies(); |
| 1178 | | |
| 1175 | |
| 1179 | 1176 | // find all the registered devices |
| 1180 | 1177 | for (auto_finder_base *autodev = m_auto_finder_list; autodev != NULL; autodev = autodev->m_next) |
| 1181 | 1178 | autodev->findit(*this); |
| r9069 | r9070 | |
| 1183 | 1180 | // call the game-specific init |
| 1184 | 1181 | if (m_config.m_game->driver_init != NULL) |
| 1185 | 1182 | (*m_config.m_game->driver_init)(&m_machine); |
| 1186 | | |
| 1183 | |
| 1184 | // finish image devices init process |
| 1185 | image_postdevice_init(&m_machine); |
| 1186 | |
| 1187 | 1187 | // call palette_init if present |
| 1188 | 1188 | if (m_config.m_palette_init != NULL) |
| 1189 | 1189 | (*m_config.m_palette_init)(&m_machine, memory_region(machine, "proms")); |