summaryrefslogtreecommitdiff
path: root/mapper_add.py
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 /mapper_add.py
parenta8e0c141b0184d629504b9f0ee8dbc4fefb90934 (diff)
renaming
Diffstat (limited to 'mapper_add.py')
-rwxr-xr-xmapper_add.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mapper_add.py b/mapper_add.py
index 151506b..7092ddb 100755
--- a/mapper_add.py
+++ b/mapper_add.py
@@ -12,11 +12,11 @@ def generate_mapper_files(mapper_id, submapper_id=0):
# Generate C file content
c_content = f"""#include "{filename}.h"
-static uint8_t {filename}_prg_read(struct nes_state *state, uint32_t addr) {{
+static uint8_t {filename}_prg_rom_read(struct nes_state *state, uint32_t addr) {{
return 0;
}}
-static void {filename}_prg_write(struct nes_state *state, uint32_t addr, uint8_t value) {{
+static void {filename}_prg_rom_write(struct nes_state *state, uint32_t addr, uint8_t value) {{
}}
static uint8_t {filename}_chr_read(struct nes_state *state, uint32_t addr) {{
@@ -37,8 +37,8 @@ static void {filename}_tick(struct nes_state *state) {{
}}
void {filename}_init(struct nes_state *state) {{
- state->mapper.prg_read = {filename}_prg_read;
- state->mapper.prg_write = {filename}_prg_write;
+ state->mapper.prg_rom_read = {filename}_prg_read;
+ state->mapper.prg_rom_write = {filename}_prg_rom_write;
state->mapper.chr_read = {filename}_chr_read;
state->mapper.chr_write = {filename}_chr_write;
state->mapper.ciram_read = {filename}_ciram_read;