VOGONS

Common searches


First post, by Spotted Cheetah

User metadata
Rank Newbie
Rank
Newbie

Is there a way to do this?

To call some function what will return a DOSBox specific information from what it can be known if my game is running under DOSBox - for example to then not bother with long messy hardware detections but try the usual setup offered by DOSBox at first, or to not start tweaking the VGA to 100Hz :p (This last is possible! 🤣 ).

So some interrupt call what will return a string containing "DOSBox" or something similar what can be used to determine this in the background.

(On the other hand i think i know a method... Check how many of a "light" ASM command can be executed, and then check how many of a "heavy" one in one tick or some other time period. If they are near to each other then it is DOSBox, if they are far, then the CPU did it)

Left this dictatoric junk. No. IV.

Reply 2 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

or check the vga card
(some vesa check will return something with dosbox in it.)

check for vbe2

and you will find these strings

"DOSBox Development Team"
"DOSBox - The DOS Emulator"
DOSBox "VERSION

Water flows down the stream
How to ask questions the smart way!