mirror of
https://github.com/holub/mame
synced 2025-06-01 18:41:47 +03:00
use device_post_load() instead of register_postload() (nw)
This commit is contained in:
parent
21a5ab5895
commit
0353e202c0
@ -459,7 +459,7 @@ WRITE8_MEMBER(k054539_device::write)
|
||||
regs[offset] = data;
|
||||
}
|
||||
|
||||
void k054539_device::reset_zones()
|
||||
void k054539_device::device_post_load()
|
||||
{
|
||||
int data = regs[0x22e];
|
||||
cur_zone = data == 0x80 ? ram : rom + 0x20000*data;
|
||||
@ -516,8 +516,6 @@ void k054539_device::device_start()
|
||||
pantab[i] = sqrt((double)i) / sqrt((double)0xe);
|
||||
|
||||
init_chip();
|
||||
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(k054539_device::reset_zones), this));
|
||||
}
|
||||
|
||||
void k054539_device::device_reset()
|
||||
|
@ -70,6 +70,7 @@ protected:
|
||||
// device-level overrides
|
||||
virtual void device_start();
|
||||
virtual void device_reset();
|
||||
virtual void device_post_load();
|
||||
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
|
||||
|
||||
// device_sound_interface overrides
|
||||
@ -108,7 +109,6 @@ private:
|
||||
void keyon(int channel);
|
||||
void keyoff(int channel);
|
||||
void init_chip();
|
||||
void reset_zones();
|
||||
};
|
||||
|
||||
extern const device_type K054539;
|
||||
|
Loading…
Reference in New Issue
Block a user