Welcome, Guest. Please login or register.

Author Topic: How to detect if an emulator is being used ?  (Read 6626 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thomas

Re: How to detect if an emulator is being used ?
« on: March 03, 2011, 10:15:41 AM »
Quote
Just wondering the best way to detect whether or not something is running on an emulator rather than real hardware ?


The presence of one of WinUAE's expansions is surely a reliable indication that you are running on the emulator.

if (FindConfigDev (NULL,2011,-1) != NULL)
/* running on emulation */

However, the absence of UAE expansions does not necessarily mean that you are not running on emulation.

Quote
If its a physicall static memory address its sending info to


It *jumps* to a physical static memory address. That's the reason why you get unpredictable crashes, because you jump to unallocated memory.

Reading the memory address will give an enforcer hit, either, so it's not a reliable way to check for emulation.