Files
px68k-libretro/Makefile.common
T
libretroadmin 3bb967da25 [PATCH] Add savestate handling
Some notes to consider:
- consider this wip. some vars might not be necessary.
- only for C68K cpu core
- minimally tested. it works on HD files, and multi-disks but have not
  tested on anything that switches to another disk yet or drive letter.
- M3U/CMD platlist format is necessary to keep track of what content the
  state is for (filename for .statex tracking for example). Switching
  disk or switching to another game through ingame menu will break
  currently loaded state.
- in core is use to run in content-less mode, the savestate will be
  universal or system state (PX68K.state) and will not be based on what
  content is loaded.
- MIDI: Loading patchsets and other midi params from a state file is not
  implemented. It may take a while to refresh instruments sets until
  next time MIDI sends new data. Its also required that only load a
  state after selecting the correct MIDI device from the ingame menu.
- requires new px68k_libretro.info file, with savestate support enabled
2024-09-09 04:11:18 +02:00

104 lines
3.0 KiB
Makefile

LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
SOURCES_S :=
SOURCES_C :=
SOURCES_CXX :=
INCFLAGS := -I$(CORE_DIR) -I$(CORE_DIR)/libretro-common/include -I$(CORE_DIR)/libretro
INCFLAGS += -I$(CORE_DIR)/x68k \
-I$(CORE_DIR)/fmgen \
-I$(CORE_DIR)/libretro \
-I$(CORE_DIR)/m68000
SOURCES_C += \
$(CORE_DIR)/m68000/m68000.c
ifeq ($(CYCLONE),1)
FLAGS += -DHAVE_CYCLONE
SOURCES_S += \
$(CORE_DIR)/m68000/cyclone.s
else
ifeq ($(C68K),1)
FLAGS += -DHAVE_C68K
SOURCES_C += \
$(CORE_DIR)/m68000/c68k/c68k.c \
$(CORE_DIR)/m68000/c68k/c68kexec.c
else
FLAGS += -DHAVE_MUSASHI
SOURCES_C += \
$(CORE_DIR)/m68000/musashi/m68kcpu.c \
$(CORE_DIR)/m68000/musashi/m68kops.c \
$(CORE_DIR)/m68000/musashi/softfloat/softfloat.c
endif
endif
SOURCES_C += \
$(CORE_DIR)/x68k/adpcm.c \
$(CORE_DIR)/x68k/bg.c \
$(CORE_DIR)/x68k/crtc.c \
$(CORE_DIR)/x68k/dmac.c \
$(CORE_DIR)/x68k/fdc.c \
$(CORE_DIR)/x68k/fdd.c \
$(CORE_DIR)/x68k/disk_d88.c \
$(CORE_DIR)/x68k/disk_dim.c \
$(CORE_DIR)/x68k/disk_xdf.c \
$(CORE_DIR)/x68k/gvram.c \
$(CORE_DIR)/x68k/ioc.c \
$(CORE_DIR)/x68k/irqh.c \
$(CORE_DIR)/x68k/mem_wrap.c \
$(CORE_DIR)/x68k/mercury.c \
$(CORE_DIR)/x68k/mfp.c \
$(CORE_DIR)/x68k/palette.c \
$(CORE_DIR)/x68k/midi.c \
$(CORE_DIR)/x68k/pia.c \
$(CORE_DIR)/x68k/rtc.c \
$(CORE_DIR)/x68k/sasi.c \
$(CORE_DIR)/x68k/scc.c \
$(CORE_DIR)/x68k/scsi.c \
$(CORE_DIR)/x68k/sram.c \
$(CORE_DIR)/x68k/sysport.c \
$(CORE_DIR)/x68k/tvram.c \
$(CORE_DIR)/libretro/joystick.c \
$(CORE_DIR)/libretro/keyboard.c \
$(CORE_DIR)/libretro/mouse.c \
$(CORE_DIR)/libretro/prop.c \
$(CORE_DIR)/libretro/timer.c \
$(CORE_DIR)/libretro/dswin.c \
$(CORE_DIR)/libretro/windraw.c \
$(CORE_DIR)/libretro/winui.c \
$(CORE_DIR)/libretro/dosio.c \
$(CORE_DIR)/libretro/fake.c \
$(CORE_DIR)/libretro/peace.c \
$(CORE_DIR)/libretro/state.c \
$(CORE_DIR)/libretro.c
SOURCES_CXX += \
$(CORE_DIR)/fmgen/fmg_wrap.cpp \
$(CORE_DIR)/fmgen/fmgen.cpp \
$(CORE_DIR)/fmgen/fmtimer.cpp \
$(CORE_DIR)/fmgen/opm.cpp \
$(CORE_DIR)/fmgen/opna.cpp \
$(CORE_DIR)/fmgen/psg.cpp
ifeq ($(USE_LIBRETRO_VFS),1)
SOURCES_C += \
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.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)/file/retro_dirent.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
$(LIBRETRO_COMM_DIR)/streams/file_stream_transforms.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