Previous 15994 Revisions Next

r9070 Tuesday 7th September, 2010 at 16:50:43 UTC by Angelo Salese
From Micko: fixed chd image loading?
[src/emu]machine.c

src/emu/machine.c
r9069r9070
332332   // start up the devices
333333   m_devicelist.start_all();
334334
335   // finish image devices init process
336   image_postdevice_init(this);
337
338335   // if we're coming in with a savegame request, process it now
339336   const char *savegame = options_get_string(&m_options, OPTION_STATE);
340337   if (savegame[0] != 0)
r9069r9070
977974
978975
979976//-------------------------------------------------
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
982979//  configuration
983980//-------------------------------------------------
984981
r9069r9070
989986
990987
991988//-------------------------------------------------
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
994991//  configuration
995992//-------------------------------------------------
996993
r9069r9070
1001998
1002999
10031000//-------------------------------------------------
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
10061003//  configuration
10071004//-------------------------------------------------
10081005
r9069r9070
10131010
10141011
10151012//-------------------------------------------------
1016//  rom_region - return a pointer to the ROM
1013//  rom_region - return a pointer to the ROM
10171014//  regions specified for the current game
10181015//-------------------------------------------------
10191016
r9069r9070
11751172   // reschedule ourselves to be last
11761173   if (next() != NULL)
11771174      throw device_missing_dependencies();
1178   
1175
11791176   // find all the registered devices
11801177   for (auto_finder_base *autodev = m_auto_finder_list; autodev != NULL; autodev = autodev->m_next)
11811178      autodev->findit(*this);
r9069r9070
11831180   // call the game-specific init
11841181   if (m_config.m_game->driver_init != NULL)
11851182      (*m_config.m_game->driver_init)(&m_machine);
1186   
1183
1184   // finish image devices init process
1185   image_postdevice_init(&m_machine);
1186
11871187   // call palette_init if present
11881188   if (m_config.m_palette_init != NULL)
11891189      (*m_config.m_palette_init)(&m_machine, memory_region(machine, "proms"));

Previous 15994 Revisions Next


© 1998-2018 The MESS Team