[hatari-devel] Issues after restoring a memory snapshot
LAURENT SALLAFRANQUE
laurent.sallafranque at arkea.com
Fri Jan 28 18:27:27 CET 2011
> (And why Crossbar sound has reset function, but no init function?)
I've given it a quick look.
In fact, in main.c (Main_Init function), we call all the Init parts of the emulator and just after, there's a big if (Reset_Cold())
If I look at dma_sound.c init for example, it does :
void DmaSnd_Init(void)
{
DmaSnd_Reset(1);
}
So, reset is called twice when hatari boots.
If I had to add a crossbar_init function, it would call crossbar_reset, and crossbar_reset would be called twice too.
I don't think that this crossbar_init function is needed (except if you think it's more beautiful for the code ;)
If we find a parameter that need to be set at boot, but should not be set again at reset, we'll activate this init function.
Regards,
Laurent Sallafranque
Groupe Arkea
RPCAS Informatique
1 rue Louis Lichou
29480 Le Relecq Kerhuon
Tél : 02 98 00 20 76
--
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite. Tout
message etant susceptible d'alteration, l'emetteur decline toute
responsabilite au titre de ce message s'il a ete altere, deforme ou
falsifie.
-----------------------------------
This message and any attachments (the "message") are confidential and
intended solely for the addressees. Any unauthorised use or
dissemination is prohibited. As e-mails are susceptible to alteration,
the issuer shall not be liable for the message if altered, changed
or falsified.
More information about the hatari-devel
mailing list