First post, by MontyOnTheRun
I was wondering is there is any way to detect in runtime if we're running inside DOSBox? Maybe exploit some quirk on the emulation that would allow probing the "system"? It would be useful for debugging stuff that's only available in real hardware ie: I'm working on OPL2LPT support for my games - having that output redirected to a regular Adlib (when applicable) would be useful.
Thanks!
Context: I'm using GCC 7.1 with DJGPP.