It is currently Thu Nov 23, 2017 12:49 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Sep 06, 2017 9:13 am 
Offline

Joined: Fri Nov 18, 2016 7:56 am
Posts: 23
Would it be hard to Frankenstein a two 2 in 1 screenshot image file with an embedded rom?

So if you load it on a web site, or in a picture viewer, just the image would show, like a normal PNG.

But when you load it in an emulator, the embedded rom plays? No nefarious reason i ask, totally not.

_________________
Cheers :beer:


Top
 Profile  
 
PostPosted: Wed Sep 06, 2017 9:23 am 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3951
You can do it with PDF files, since they will look for the PDF header after the NES header, as seen in this thread.
PNG files don't allow you to put in anything before the header, neither do JPEG files. Although Irfanview will still view the images if there is garbage data before the image header, Google Chrome will not.
RAR files do allow you to put arbitrary data before the RAR header.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
PostPosted: Wed Sep 06, 2017 9:27 am 
Offline

Joined: Fri Nov 18, 2016 7:56 am
Posts: 23
Is such the case for all browser supported image formats?

_________________
Cheers :beer:


Top
 Profile  
 
PostPosted: Wed Sep 06, 2017 10:03 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19251
Location: NE Indiana, USA (NTSC)
Zip can be appended to another file, as its central directory is at the end of the file. This means anything built on Zip, such as LibreOffice and Microsoft Office XML formats, can also be concatenated to an NES program. As for "browser supported", you can write a decoder for just about any format in JavaScript, though you can't embed it in a blog, forum, wiki, etc. that restricts what script an author can add.


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: Bing [Bot] and 8 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