diff --git a/src/boards/518.c b/src/boards/518.c index 369c48b..9a8944c 100644 --- a/src/boards/518.c +++ b/src/boards/518.c @@ -91,5 +91,6 @@ void Mapper518_Init (CartInfo *info) { info->Reset = reset; GameStateRestore = restore; PPU_hook = trapPPUAddressChange; + AddExState(reg, 2, 0, "REGS"); AddExState(&chr, 1, 0, "CHRB"); } diff --git a/src/boards/fifo.c b/src/boards/fifo.c index 542671c..e66419a 100644 --- a/src/boards/fifo.c +++ b/src/boards/fifo.c @@ -1,3 +1,23 @@ +/* FCE Ultra - NES/Famicom Emulator + * + * Copyright notice for this file: + * Copyright (C) 2025 NewRisingSun + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #include "mapinc.h" #include #include @@ -37,7 +57,7 @@ void FIFO_init (FIFO *fifo, size_t newCapacity) { void FIFO_close (FIFO *fifo) { if (fifo->data) { - free(fifo->data); + FCEU_gfree(fifo->data); fifo->data = NULL; } } diff --git a/src/boards/msm6585.c b/src/boards/msm6585.c index bf1a702..0d3880d 100644 --- a/src/boards/msm6585.c +++ b/src/boards/msm6585.c @@ -1,3 +1,23 @@ +/* FCE Ultra - NES/Famicom Emulator + * + * Copyright notice for this file: + * Copyright (C) 2025 NewRisingSun + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #include "mapinc.h" #include "msm6585.h"