It is currently Thu Oct 19, 2017 10:20 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Mar 03, 2016 2:32 am 
Offline
User avatar

Joined: Sat Aug 15, 2015 3:42 pm
Posts: 104
Location: France
Hi,

FCEUX is not letting me use SRAM with mapper 24, but only with mapper 26.

Looking at the source, I found those lines in vrc6.cpp :

Code:
   if (is26)
      setprg8r(0x10, 0x6000, 0);


obviously, this is the problem (for me, since my Everdrive let me use SRAM with both mappers).

Can someone tell me exactly what tools I need to recompile FCEUX ? ( without "if (is26)" )

Or is there someone kind enough to recompile it with the modification and send me the .exe file ?


edit : I found a workaround, loading a ROM using SRAM (which initialize SRAM in FCEUX) and then loading my ROM with mapper 24. But I'm still interested in the tools needed, or the modified exe file.


Top
 Profile  
 
PostPosted: Thu Mar 03, 2016 6:09 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5718
Location: Canada
glutock wrote:
Can someone tell me exactly what tools I need to recompile FCEUX ?

All you need is the source code, and a free version of Visual Studio. Older free versions were called "Visual Studio Express" but I guess it's now "Visual Studio Community"? (Should work with older versions of VS Express just fine, too.) https://www.visualstudio.com/

If you want bleeding edge source code, instead of the last archived version, you can use SVN to get the latest code from FCEUX's sourceforge server: https://tortoisesvn.net/ / https://sourceforge.net/p/fceultra/

If this is a bug, you can report it at FCEUX's sourceforge bug tracker, by the way: https://sourceforge.net/p/fceultra/bugs/


Top
 Profile  
 
PostPosted: Thu Mar 03, 2016 11:42 am 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6285
Location: Seattle
When that line was added in rev2810, it looks like cah4e3 went to special effort to differentiate between mapper 24 and mapper 26 behavior.

I'm not clear whether that was intentionally avoiding breaking some assumption in Akumajou Densetsu or just being cautious.


Top
 Profile  
 
PostPosted: Thu Mar 03, 2016 1:36 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19104
Location: NE Indiana, USA (NTSC)
And in any case, it ought to be changed to allow games to override the PRG RAM size if the NES 2.0 header is present.


Top
 Profile  
 
PostPosted: Fri Mar 04, 2016 5:34 am 
Offline
User avatar

Joined: Sat Aug 15, 2015 3:42 pm
Posts: 104
Location: France
rainwarrior wrote:

All you need is the source code, and a free version of Visual Studio. Older free versions were called "Visual Studio Express" but I guess it's now "Visual Studio Community"? (Should work with older versions of VS Express just fine, too.) https://www.visualstudio.com/



Thanks, I'll definitly try this. I used Visual Studio Express years ago and wasn't aware of the new version (Community).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group