Ancurio / mkxp

Free Software implementation of the Ruby Game Scripting System (RGSS)
GNU General Public License v2.0
509 stars 128 forks source link

Best Way to Detect if Running mkxp? #244

Closed KainNobel closed 2 years ago

KainNobel commented 2 years ago

How do you check if running RMXP's oldschool Game.exe or the mkxp program? I need to enable/disable Win32API related functions but I don't know how to detect which is being used.

cremno commented 2 years ago

There are a lot of possible checks but I'd simply write:

defined? MKXP

MKXP is a module defined by mkxp.