emufreak / iAmiga

iAmiga sources
44 stars 17 forks source link

Crash when loading Cloanto kickrom #35

Closed mdbergmann closed 8 years ago

mdbergmann commented 8 years ago

Hi.

I've tried the emulator (1.1.0) with Cloanto roms. When starting the Emulator I'm getting a EXC_BAD_ACCESS error in zfile.cpp method: size_t uae4all_rom_fread(void ptr, size_t tam, size_t nmiemb, FILE flujo)

size_t uae4all_rom_fread(void *ptr, size_t tam, size_t nmiemb, FILE *flujo)
{
    if ((!flujo)||(!uae4all_rom_memory))
        return 0;
    if (uae4all_rom_pos>=uae4all_rom_len)
        return 0;
=> here memcpy(ptr,(void *)(((unsigned)uae4all_rom_memory)+((unsigned)uae4all_rom_pos)),tam*nmiemb);
    uae4all_rom_pos+=tam*nmiemb;
    return nmiemb;
}

Is using Cloanto ROMs supported?

Manfred

simontoens commented 8 years ago

Hi @mdbergmann, I think the answer is that you are the first one to try and so given your experience, I guess Cloanto ROMs are not supported. Would you like to try to contribute a fix?

mdbergmann commented 8 years ago

I can have a look. But that'll take a while.

emufreak commented 8 years ago

What Version of Cloanto Amiga Forever do you use?

mdbergmann commented 8 years ago

It's at least 2013, possibly newer.

emufreak commented 8 years ago

@mdbergmann. Sorry that's not what I meant. Is it Value, Plus or Premium Edition . Problems were reported with other emulators with Value Edition.

mdbergmann commented 8 years ago

I have the Plus edition.

emufreak commented 8 years ago

@mdbergmann Should work too. Can't test it though. Can you give it a go?

mdbergmann commented 8 years ago

Didn't work in my test. The screen stays black. The Cloanto roms come with a rom.key file. Probably they are encrypted. Is that key file loaded at all?

emufreak commented 8 years ago

I'm working on this. There are still some bugs but I got the general idea.

emufreak commented 8 years ago

Hi @mdbergmann

I fixed this. You'll have to add rom.key using Itunes. Then you should be able to load the Cloanto rom.

Please confirm