summaryrefslogtreecommitdiff
path: root/mknes.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-27 15:03:30 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-27 15:03:30 +0200
commit7cca3bdbec289328b537c8256b43dcfedc5d56b8 (patch)
tree181c22764d3d881ccd41d5c0282cd364d3f5197d /mknes.h
parenta8e0c141b0184d629504b9f0ee8dbc4fefb90934 (diff)
renaming
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;