Jump to content

Chism FAT drvier and Dualis r19.1 & 20


alekmaul

Recommended Posts

Hello all,

My emulator MarcaDS works fine with Dualis R19 but freeze on the game list with Dualis R19.1 and Dualis R20... I think the problem is when I open the game rom file to see if a screen shot is available.

I use the last chism driver version : 2006/03/03

Can't with use these dualis versions with this chism's driver ?

Edited by alekmaul
Link to comment
Share on other sites

  • Replies 22
  • Created
  • Last Reply

Top Posters In This Topic

I never heard of MarcaDS....

Yes, I am French, sorry about that :P

MarcaDS is an arcade emulator like Mame but it does not use the mame source code (too huge for DS). So you can play at games like Pacman, Donkey Kong, arkanoid, and so on (the list is in the zip file).

It is emulated about 40 games for now.

You can download the last version, you will have a readme file in Englsh too :D !

 

For mic, this is very strange... :unsure:, I have change nothing.

MarcaDS freeze if you use UP and Down keys on the list. I will try do locate the code which is responsible of the problem.

 

[EDIT]I have found where is the problem, it is in my zip reader, but I don't know why it does not works now.

Here is the code :

    if (_zipFile != NULL) {
     free(_zipFile);
   }
   _zipFile = NULL;
   FAT_chdir(szFATDir);
   FAT_FILE* handle = FAT_fopen(path, "r");  
   if (handle != NULL) {
     int iSSize=FAT_GetFileSize();
     _zipFile = (char*) malloc (iSSize+1); 
     FAT_fread((void*) _zipFile, iSSize, 1, handle); 
     FAT_fclose(handle);
   }

path is a const char * var which have the real zip filename.

Edited by alekmaul
Link to comment
Share on other sites

OK, I have put debug mode on.

Here is the screenshot of Dualis before it is crashing (drwatson...)

pbdualis.jpg

The FAT_GetFileSize is ok, it is 218142 for 1942.zip arcade game.

So, I think the pb is the FAT_fread, because it crashed just after when I want to check the ZIP header (and the size of the zip file seems ok).

  if (_zipFile != NULL) {
   if ( (*_zipFile != 0x50) || (*(_zipFile + 1) != 0x4B) || (*(_zipFile + 2) != 0x03) || (*(_zipFile + 3) != 0x04) ) {
     if (isFATSystem) {
       free(_zipFile);
     }
#ifdef VERBOSE
     iprintf("Not zip file %08x\n",_zipFile);
#endif
     return 0xF0;
   }

Of course, I have made NO modification to chism's FAT driver.

 

Any suggestion ?

Edited by alekmaul
Link to comment
Share on other sites

I have fixed a couple of bugs in the FAT emulation today. I don't know if they have anything to do with your problem, since I don't have the latest version of MarcaDS to test with.

Link to comment
Share on other sites

mic, I've got a bad news for you... :(....

 

NOW, IT IS GOOD !!! :P !!!! Thanks a lot for your fast release with the fix, you're the best <_<

 

Robert, here is the web page about MarcaDS, with download section on the bottom of the page : MarcaDS Web Page

Also, you can find others emulator i've made on my web site, a vectrex emulator and a coleco emulator.

Here are the links :

Coleco Emulator

Vectrex emulator

Also, the PSG emulation of the unreleased V0.3 of colecoDS works fine with sound in Dualis :lol:

At least, mic, I saw a little bug in your emulator, the video emulation works even if we access it in 8 bits (for exemple, when we are changing tiles video ram, like in MarcaDS), but it is bad because the hardware only wants 16 bits access. So some homebrew works on your emulator if we make access in 8 bits to the video memory but are not working if we use a real DS (glitchs on screen or black screen).

Edited by alekmaul
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...