예제 #1
0
파일: wolfpack.cpp 프로젝트: NULUSIOS/mame
void wolfpack_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
{
	switch (id)
	{
	case TIMER_PERIODIC:
		periodic_callback(ptr, param);
		break;
	default:
		assert_always(FALSE, "Unknown id in wolfpack_state::device_timer");
	}
}
예제 #2
0
파일: boxer.cpp 프로젝트: Fulg/mame
void boxer_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
{
	switch(id)
	{
	case TIMER_POT_INTERRUPT:
		pot_interrupt(ptr, param);
		break;
	case TIMER_PERIODIC:
		periodic_callback(ptr, param);
		break;
	default:
		assert_always(FALSE, "Unknown id in boxer_state::device_timer");
	}
}