Skip to content

Commit

Permalink
Cleaned up a few more legacy callbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuavas committed Jun 14, 2022
1 parent d8854e4 commit b911bd2
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 171 deletions.
6 changes: 6 additions & 0 deletions src/mame/drivers/magicfly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,16 +441,20 @@
*******************************************************************************/

#include "emu.h"

#include "cpu/m6502/m6502.h"
#include "machine/nvram.h"
#include "sound/dac.h"
#include "video/mc6845.h"

#include "emupal.h"
#include "screen.h"
#include "speaker.h"
#include "tilemap.h"


namespace {

#define MASTER_CLOCK XTAL(10'000'000)


Expand Down Expand Up @@ -1057,6 +1061,8 @@ ROM_START( bchance )
ROM_LOAD( "gal16v8-bchance.bin", 0x0000, 0x0104, NO_DUMP ) /* protected */
ROM_END

} // anonymous namespace


/*********************************************
* Game Drivers *
Expand Down
16 changes: 11 additions & 5 deletions src/mame/drivers/schick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
#include "machine/gen_latch.h"
#include "machine/watchdog.h"
#include "sound/ay8910.h"

#include "emupal.h"
#include "tilemap.h"
#include "screen.h"
#include "speaker.h"
#include "video/resnet.h"


namespace {

class schick_state : public driver_device
{
public:
Expand All @@ -44,12 +47,16 @@ class schick_state : public driver_device
m_palette(*this, "palette"),
m_ay(*this, "ay%u", 1U),
m_irq_mask(0)
{}
{
}

void schick(machine_config &config);

void init_schick();

protected:
virtual void machine_start() override;

private:
DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
Expand Down Expand Up @@ -101,7 +108,6 @@ class schick_state : public driver_device

uint8_t m_irq_mask;
uint32_t screen_update_schick(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_VIDEO_START(schick);

tilemap_t *m_bg_tilemap = nullptr;
uint8_t m_charbank = 0;
Expand All @@ -128,7 +134,7 @@ class schick_state : public driver_device
#define VBSTART (224) /*(224+16)*/


VIDEO_START_MEMBER(schick_state,schick)
void schick_state::machine_start()
{
save_item(NAME(m_charbank));
save_item(NAME(m_spritebank));
Expand Down Expand Up @@ -606,8 +612,6 @@ void schick_state::schick(machine_config &config) // all dividers unknown
screen.screen_vblank().set(FUNC(schick_state::vblank_irq));
screen.screen_vblank().append_inputline("audiocpu", INPUT_LINE_NMI);

MCFG_VIDEO_START_OVERRIDE(schick_state, schick)

// sound hardware
SPEAKER(config, "mono").front_center();

Expand Down Expand Up @@ -787,5 +791,7 @@ ROM_START( schick )
ROM_LOAD( "am27s33pc", 0x020, 0x400, NO_DUMP)
ROM_END

} // anonymous namespace


GAME( 1988, schick, 0, schick, schick, schick_state, init_schick, ROT90, "Microhard", "Super Chick", MACHINE_NOT_WORKING | MACHINE_IMPERFECT_SOUND | MACHINE_UNEMULATED_PROTECTION | MACHINE_SUPPORTS_SAVE )
Loading

0 comments on commit b911bd2

Please sign in to comment.