PDA

View Full Version : Updated Reality Boy



wraggster
March 25th, 2010, 22:17
News via http://www.aep-emu.de/PNphpBB2-file-viewtopic-t-14857.html

A new version of the Nintendo VirtualBoy emulator Reality Boy was released.


Quote:
Re: Updated Reality Boy
Geschrieben am: 18.02.2010 03:40

Actually, in my version of the front-end at least, the file paths (emu and ROM) are stored in 2048-byte strings. But, I kinda goofed because the command-line options (minus the emu executable path) is stored in a 512-byte string... :doh:

Microsoftīs docs for ShellExecute donīt say if there is a limit to the lengths of strings passed to it, so Iīm going to increase it to 4K or so and test it out with a really long path.

EDIT: I increased the path variable size and also now use _snprintf() so there shouldnīt be anymore buffer overruns even if the size is exceeded (itīll just cut off the last few options). I tested it on:

"C:Documents and Settings\My DocumentsReally Big, Long, and also Huge Test PathWhich is also nested quite deeplyAnd is used to store only a single Virtual Boy ROM ImageSpace Invaders Virtual Collection (J) [!].vb" and it worked a treat

Attached you should find a new executable to test.

http://www.planetvb.com/modules/newbb/dl_attachment.php?attachid=1266462050&post_id=10114

http://www.planetvb.com/modules/newbb/viewtopic.php?post_id=10024#forumpost10024