projects
/
drnoksnes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed dependency on hildon-games-wrapper
[drnoksnes]
/
fxemu.cpp
diff --git
a/fxemu.cpp
b/fxemu.cpp
index
a91db25
..
6570183
100644
(file)
--- a/
fxemu.cpp
+++ b/
fxemu.cpp
@@
-44,6
+44,8
@@
#include <string.h>
#include <stdio.h>
#include <string.h>
#include <stdio.h>
+#include "port.h"
+
/* The FxChip Emulator's internal variables */
struct FxRegs_s GSU = {{0}, 0};
/* 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 };
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 */
GSU.vErrorCode = 0;
/* Update R0-R15 */