summaryrefslogtreecommitdiff
path: root/mknes.h
diff options
context:
space:
mode:
Diffstat (limited to 'mknes.h')
-rw-r--r--mknes.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/mknes.h b/mknes.h
index c169140..27d4f6e 100644
--- a/mknes.h
+++ b/mknes.h
@@ -106,9 +106,8 @@ struct ines_state {
struct nes_state {
struct ppu_state ppu;
- struct mapper_functions mapper;
- // union mapper_data map;
- char map[sizeof(union mapper_data)] __attribute__((aligned(64))); // NOTE(peter): Only way due to aliasing rules in the C standard.
+ struct mapper_functions mapper_function;
+ union mapper_data mapper_data;
struct cpu_state cpu;
struct ines_state ines;
// struct apu_state apu;