Added czech translation by fri
[drnoksnes] / fxemu.cpp
index a91db25..6570183 100644 (file)
--- a/fxemu.cpp
+++ b/fxemu.cpp
@@ -44,6 +44,8 @@
 #include <string.h>
 #include <stdio.h>
 
+#include "port.h"
+
 /* The FxChip Emulator's internal variables */
 struct FxRegs_s GSU = {{0}, 0};
 
@@ -189,6 +191,10 @@ static void fx_readRegisterSpace()
     static uint32 avHeight[] = { 128, 160, 192, 256 };
     static uint32 avMult[] = { 16, 32, 32, 64 };
 
+#ifndef SUPER_FX
+       abort(); // Tried to run SuperFX game in non SuperFX build.
+#endif
+
     GSU.vErrorCode = 0;
 
     /* Update R0-R15 */