X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fxemu.cpp;h=65701838b87feb7c37d25b629e46fa728525f3c1;hb=346d0cc83e6586a8802e24b61577b83c02a88719;hp=a91db255b58a205d4690ae2e93831ecd9ca9d9f6;hpb=909f5635bffc4c3516ddbba4f9c63c2a7333afc7;p=drnoksnes diff --git a/fxemu.cpp b/fxemu.cpp index a91db25..6570183 100644 --- a/fxemu.cpp +++ b/fxemu.cpp @@ -44,6 +44,8 @@ #include #include +#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 */