A technical question/ maybe a feature request

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
mnk
Rookie
Posts: 20
Joined: Sat Feb 05, 2005 12:32 am

A technical question/ maybe a feature request

Post by mnk »

If it turn to be a feature request it's probably one asked often, but as I'm trying to learn something, it's the technical part that'd be more important.
So, the question is what parts of the code should I be looking at if I was trying to add a tile viewer (in linux) ? I don't know enough about assembler to write any code, so I hope it will stay in the C part. Alternatively, advice could be about Snes9x. I hope to write something working in following way: called at any time, it makes a copy of current state of memory, displays all tiles and their position/size in the rom, but doesn't stop the emulation.
Right now, I don't know how I'll go about it, maybe I try to mess with gtk.
Of course, I'm looking for a fairly simple and clean solution, so dosbox/wine advices don't count.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

I'd just stick something in anywhere that processes ZSNES' internal arrays. However ZSNES internal arrays are processed in assembly, but that doesn't mean your code can't be C, it's an array like any other.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Re: A technical question/ maybe a feature request

Post by creaothceann »

mnk wrote:what parts of the code should I be looking at if I was trying to add a tile viewer?
I'd add it right after the current frame has been rendered (optionally only every x frames).

Don't know where that would be in the code, though. :?
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Re: A technical question/ maybe a feature request

Post by Nach »

creaothceann wrote:
mnk wrote:what parts of the code should I be looking at if I was trying to add a tile viewer?
I'd add it right after the current frame has been rendered (optionally only every x frames).

Don't know where that would be in the code, though. :?
Well, logically, one would look at screenshot or movie dumping code to see when those get called, and do something around there.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply