Why are you using "-video d3d"? You're apparently trying some BGFX stuff, so "-video bgfx" would be correct.

What does the emulator log say why it returns 6?


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]