Skip to content

Commit

Permalink
Rewrite: Massive mapper code updates and fixes, feature updates and o…
Browse files Browse the repository at this point in the history
…ther misc updates

cleanup m001/m155

cleanup latch-based mappers

fix runahead compatibility for lightgun device

add file

update

cleanup eeprom

m413: Fix runahead compatibility

add mapper 355 support

android buildfix

fix regression bug and others

fix fix buffer allocs and others

add missing files

PPU updates, fix buffer deallocation error

Start using driver interface

fix allocation errors, fix m547

Create drawing.c

m547 cleanups

use 512*768 for ntscblit buffers

m228 cleanup

update vrcirq

Fix fme7

fix buffer overflows

swap crc and title in 4player support list

add hori4 and famicom network system inputs

various NFS fixes
  • Loading branch information
negativeExponent committed Feb 25, 2024
1 parent 0ec7c19 commit 51289a4
Show file tree
Hide file tree
Showing 735 changed files with 47,626 additions and 34,564 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/crowdin_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
paths:
- 'src/drivers/libretro/libretro_core_options.h'
- 'libretro/libretro_core_options.h'

jobs:
upload_source_file:
Expand All @@ -30,4 +30,4 @@ jobs:
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
python3 intl/upload_workflow.py $CROWDIN_API_KEY "libretro-fceumm" "src/drivers/libretro/libretro_core_options.h"
python3 intl/upload_workflow.py $CROWDIN_API_KEY "libretro-fceumm" "libretro/libretro_core_options.h"
6 changes: 3 additions & 3 deletions .github/workflows/crowdin_translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
python3 intl/download_workflow.py $CROWDIN_API_KEY "libretro-fceumm" "src/drivers/libretro/libretro_core_options_intl.h"
python3 intl/download_workflow.py $CROWDIN_API_KEY "libretro-fceumm" "libretro/libretro_core_options_intl.h"
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
git add intl/*_workflow.py "src/drivers/libretro/libretro_core_options_intl.h"
git add intl/*_workflow.py "libretro/libretro_core_options_intl.h"
git commit -m "Fetch translations & Recreate libretro_core_options_intl.h"
- name: GitHub Push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
branch: ${{ github.ref }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.a
*.so
.vscode
.clang-format
122 changes: 81 additions & 41 deletions Makefile.common
Original file line number Diff line number Diff line change
@@ -1,76 +1,116 @@
LIBRETRO_COMM_DIR := $(CORE_DIR)/drivers/libretro/libretro-common
LIBRETRO_COMM_DIR := $(LIBRETRO_DIR)/libretro-common

INCFLAGS := \
-I$(CORE_DIR)/drivers/libretro \
-I$(LIBRETRO_DIR) \
-I$(LIBRETRO_COMM_DIR)/include \
-I$(CORE_DIR) \
-I$(CORE_DIR)/input \
-I$(CORE_DIR)/boards
-I$(SOURCE_DIR) \
-I$(SOURCE_DIR)/input \
-I$(SOURCE_DIR)/mappers \
-I$(SOURCE_DIR)/mappers/hw \
-I$(SOURCE_DIR)/mappers/sound

ifneq (,$(findstring msvc2003,$(platform)))
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
endif

COREDEFINES = \
-D__LIBRETRO__ \
-DPATH_MAX=1024 \
-DFCEU_VERSION_NUMERIC=9813 \
-DFRONTEND_SUPPORTS_RGB565

FCEU_SRC_DIRS := \
$(CORE_DIR)/boards \
$(CORE_DIR)/input
$(SOURCE_DIR)/input \
$(SOURCE_DIR)/mappers

SOURCES_C := $(foreach dir,$(FCEU_SRC_DIRS),$(wildcard $(dir)/*.c))

# HW
SOURCES_C += $(SOURCE_DIR)/mappers/hw/bandai.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/eeprom_93Cx6.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/eeprom_x24c0x.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/flashrom.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/fme7.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/jv001.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/jyasic.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/ks202.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/latch.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/mmc1.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/mmc2.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/mmc3.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/mmc4.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/mmc6.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/n118.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/pic16c5x.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/txc.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/vrc2and4.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/vrc6.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/vrc7.c
SOURCES_C += $(SOURCE_DIR)/mappers/hw/vrcirq.c

# SOUND
SOURCES_C += $(SOURCE_DIR)/mappers/sound/emu2149.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/emu2413.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/fdssound.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/mmc5sound.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/n163sound.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/s5bsound.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/vrc6sound.c
SOURCES_C += $(SOURCE_DIR)/mappers/sound/vrc7sound.c

ifeq ($(HAVE_NTSC),1)
COREDEFINES += \
-DHAVE_NTSC_FILTER \
-I$(CORE_DIR)/ntsc
SOURCES_C += $(CORE_DIR)/ntsc/nes_ntsc.c
-I$(SOURCE_DIR)/ntsc
SOURCES_C += \
$(SOURCE_DIR)/ntsc/nes_ntsc.c
endif

SOURCES_C += \
$(CORE_DIR)/drivers/libretro/libretro.c \
$(CORE_DIR)/drivers/libretro/libretro_dipswitch.c \
$(CORE_DIR)/cart.c \
$(CORE_DIR)/cheat.c \
$(CORE_DIR)/crc32.c \
$(CORE_DIR)/fceu-endian.c \
$(CORE_DIR)/fceu-memory.c \
$(CORE_DIR)/fceu.c \
$(CORE_DIR)/fds.c \
$(CORE_DIR)/fds_apu.c \
$(CORE_DIR)/file.c \
$(CORE_DIR)/filter.c \
$(CORE_DIR)/general.c \
$(CORE_DIR)/input.c \
$(CORE_DIR)/md5.c \
$(CORE_DIR)/nsf.c \
$(CORE_DIR)/palette.c \
$(CORE_DIR)/ppu.c \
$(CORE_DIR)/sound.c \
$(CORE_DIR)/state.c \
$(CORE_DIR)/video.c \
$(CORE_DIR)/vsuni.c \
$(CORE_DIR)/ines.c \
$(CORE_DIR)/unif.c \
$(CORE_DIR)/x6502.c
$(SOURCE_DIR)/cart.c \
$(SOURCE_DIR)/cheat.c \
$(SOURCE_DIR)/crc32.c \
$(SOURCE_DIR)/drawing.c \
$(SOURCE_DIR)/fceu-endian.c \
$(SOURCE_DIR)/fceu-memory.c \
$(SOURCE_DIR)/fceu.c \
$(SOURCE_DIR)/fds.c \
$(SOURCE_DIR)/file.c \
$(SOURCE_DIR)/filter.c \
$(SOURCE_DIR)/gamegenie.c \
$(SOURCE_DIR)/general.c \
$(SOURCE_DIR)/input.c \
$(SOURCE_DIR)/mappers.c \
$(SOURCE_DIR)/md5.c \
$(SOURCE_DIR)/nsf.c \
$(SOURCE_DIR)/nsfe.c \
$(SOURCE_DIR)/palette.c \
$(SOURCE_DIR)/ppu.c \
$(SOURCE_DIR)/sound.c \
$(SOURCE_DIR)/state.c \
$(SOURCE_DIR)/video.c \
$(SOURCE_DIR)/vsuni.c \
$(SOURCE_DIR)/ines.c \
$(SOURCE_DIR)/unif.c \
$(SOURCE_DIR)/x6502.c

ifneq ($(STATIC_LINKING), 1)
SOURCES_C += \
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
$(LIBRETRO_COMM_DIR)/file/file_path.c \
$(LIBRETRO_COMM_DIR)/file/file_path_io.c \
$(LIBRETRO_COMM_DIR)/memmap/memalign.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream_transforms.c \
$(LIBRETRO_COMM_DIR)/streams/memory_stream.c \
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
$(LIBRETRO_COMM_DIR)/time/rtime.c \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c
ifdef _MSC_VER
SOURCES_C += \
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c
endif
endif

SOURCES_C += \
$(LIBRETRO_DIR)/libretro_input.c \
$(LIBRETRO_DIR)/libretro_dipswitch.c \
$(LIBRETRO_DIR)/libretro.c
Loading

0 comments on commit 51289a4

Please sign in to comment.