Using open source SNES emulator code to turn a rom file into a self-contained executable game -


Is it possible to take source code from SNES emulator (or any other game system emulator for that matter) and games for the system ROM, and in any way to make a single self-sufficient executable that lets you play that particular ROM without having to manually play the individual ROM or emulator? Would it be difficult, assuming that you have already received the ROM and emulator source code?

If you have emulator source code then it should not be very difficult to use you using such a method Which can often be used to store images in source files.

Actually, what you need to do is create a char * variable in a header file, and store the contents of the ROM file in that variable to automate it for you You might want to write a script for.

Then, you will need to change the source code, instead of reading the ROM from one file, it uses the memory version ROM is stored in its own variable and included in your header file has gone.

If you need to emulate file pointers, or you need to do this, or you may be lucky and you think the rom loading function loads the entire file just once In this case it will probably be as simple as replacing the file load function with the function to return to your pointer.

However, be careful for licensing problems if the emulator is licensed under GPL, then you can not be legally allowed to store a proprietary file in executable, so check it It will be worth, especially before you release / distribute it (if you plan to do so)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -