作者conpo (びんぼうがみ)
看板Emulator
标题[新闻] (VirtualBoy) Updated Reality Boy
时间Fri Mar 26 11:23:46 2010
2010.03.25
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://ppt.cc/HtEt
来源:
http://ppt.cc/6iLM
--
谷 繁 田 中 贤 稻 叶 吉 见 石 川 雅
矢 野 中 村 ロ ㄧ ズ チ ェ ン 摄 津
阿 部 鸟 谷 ラミレス 涌 井 岩 濑
小 笠 原 井 端 青 木 ダルビッ 藤 川
ブランコ 森 野 杉 内 クルㄧン
宫 本 荒 木 田 中 将 林 昌 勇
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.178.241