Remove unmaintained codepaths

This commit is contained in:
rdanbrook 2020-12-02 19:20:03 -05:00
parent 5eb21a039c
commit b997300c89
20 changed files with 10 additions and 6492 deletions

View file

@ -15,7 +15,6 @@ nestopia_CPPFLAGS = \
-DNST_PRAGMA_ONCE \
$(ZLIB_CFLAGS) \
$(LIBARCHIVE_CFLAGS) \
$(LIBAO_CFLAGS) \
$(SDL2_CFLAGS) \
$(LIBEPOXY_CFLAGS)
nestopia_LDADD = \
@ -29,16 +28,6 @@ nestopia_CPPFLAGS += -D_GTK $(GTK3_CFLAGS)
nestopia_LDADD += $(GTK3_LIBS)
endif
if ENABLE_LIBAO
nestopia_CPPFLAGS += -D_LIBAO $(LIBAO_CFLAGS)
nestopia_LDADD += $(LIBAO_LIBS)
endif
if ENABLE_JACK
nestopia_CPPFLAGS += -D_JACK $(JACK_CFLAGS)
nestopia_LDADD += $(JACK_LIBS)
endif
################
# Installation #
################

View file

@ -4,40 +4,30 @@ Linux port. The purpose of the project is to enhance the original, and
ensure it continues to work on modern operating systems.
The following platforms are supported:
* Linux, FreeBSD, OpenBSD, NetBSD, OS X, Windows
* Anything supported by libretro
* Linux, BSD, Windows
This project depends on the following libraries:
libsdl2, libepoxy, libao, libarchive, zlib
libsdl2, libepoxy, libarchive, zlib
Optionally, it depends on GTK+3 for the GUI, currently only available on Linux and BSD.
## Installing Dependencies
Install dependencies required for building on Debian-based Linux distributions:
```
apt-get install build-essential autoconf autoconf-archive automake autotools-dev libsdl2-dev libepoxy-dev libarchive-dev zlib1g-dev
```
Optional dependencies:
```
apt-get install libao-dev libjack-dev libgtk-3-dev
apt-get install build-essential autoconf autoconf-archive automake autotools-dev libgtk-3-dev libsdl2-dev libepoxy-dev libarchive-dev zlib1g-dev
```
## Building
To build using Autotools (optional arguments in square brackets):
```
autoreconf -vif
./configure [--enable-gui] [--enable-doc] [--with-ao] [--with-jack]
./configure [--enable-gui] [--enable-doc]
make
```
Optionally:
```
make install
```
Differences on OS X:
```
export PKG_CONFIG_PATH=/usr/local/opt/libarchive/lib/pkgconfig/
./configure --disable-gui
```
In order to bootstrap the Autotools you will need:
1. **Autoconf**; latest 2.69 release (http://www.gnu.org/software/autoconf/)

View file

@ -79,23 +79,6 @@ PKG_CHECK_MODULES([SDL2], [sdl2])
dnl LibEpoxy
PKG_CHECK_MODULES([LIBEPOXY], [epoxy])
dnl libao
AC_ARG_WITH([ao],
AS_HELP_STRING([--with-ao], [Build with libao audio support]))
AS_IF([test "x$with_ao" = "xyes"], [
PKG_CHECK_MODULES([LIBAO],[ao])
])
AM_CONDITIONAL([ENABLE_LIBAO], [test "x$with_ao" = "xyes"])
dnl JACK audio
AC_ARG_WITH([jack],
AS_HELP_STRING([--with-jack], [Build with JACK audio support]))
AS_IF([test "x$with_jack" = "xyes"], [
PKG_CHECK_MODULES([JACK],[jack])
])
AM_CONDITIONAL([ENABLE_JACK], [test "x$with_jack" = "xyes"])
dnl GTK3
AC_ARG_ENABLE([gui],
AS_HELP_STRING([--enable-gui], [Enable building GUI with GTK+3]))

View file

@ -1,759 +0,0 @@
DEBUG = 0
GIT_VERSION := " $(shell git rev-parse --short HEAD)"
HAS_GCC = 1
SPACE :=
SPACE := $(SPACE) $(SPACE)
BACKSLASH :=
BACKSLASH := \$(BACKSLASH)
filter_out1 = $(filter-out $(firstword $1),$1)
filter_out2 = $(call filter_out1,$(call filter_out1,$1))
ifeq ($(platform),)
platform = unix
ifeq ($(shell uname -s),)
platform = win
else ifneq ($(findstring MINGW,$(shell uname -s)),)
platform = win
else ifneq ($(findstring Darwin,$(shell uname -s)),)
platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring win,$(shell uname -s)),)
platform = win
endif
endif
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
arch = intel
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
prefix := /usr
libdir := $(prefix)/lib
LIBRETRO_DIR := libretro
TARGET_NAME := nestopia
SPACE :=
SPACE := $(SPACE) $(SPACE)
BACKSLASH :=
BACKSLASH := \$(BACKSLASH)
filter_out1 = $(filter-out $(firstword $1),$1)
filter_out2 = $(call filter_out1,$(call filter_out1,$1))
unixpath = $(subst \,/,$1)
unixcygpath = /$(subst :,,$(call unixpath,$1))
# Unix
ifeq ($(platform), unix)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
ifeq ($(shell uname -s), Haiku)
LDFLAGS += -lroot
endif
# OS X
else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC
SHARED := -dynamiclib
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
LDFLAGS += -mmacosx-version-min=10.7
CFLAGS += -mmacosx-version-min=10.7
CXXFLAGS += -mmacosx-version-min=10.7
ifndef ($(NOUNIVERSAL))
CFLAGS += $(ARCHFLAGS)
CXXFLAGS += $(ARCHFLAGS)
LDFLAGS += $(ARCHFLAGS)
endif
ifeq ($(arch),ppc)
CFLAGS += -DHAVE_NO_LANGEXTRA
CXXFLAGS += -DHAVE_NO_LANGEXTRA
endif
# iOS
else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
ifeq ($(platform), ios-arm64)
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
else
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
endif
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
CC += -miphoneos-version-min=8.0
CXX += -miphoneos-version-min=8.0
PLATFORM_DEFINES += -miphoneos-version-min=8.0
else
CC += -miphoneos-version-min=5.0
CXX += -miphoneos-version-min=5.0
PLATFORM_DEFINES += -miphoneos-version-min=5.0
endif
# tvOS
else ifeq ($(platform), tvos-arm64)
TARGET := $(TARGET_NAME)_libretro_tvos.dylib
fpic = -fPIC
SHARED := -dynamiclib
ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
endif
# Theos
else ifeq ($(platform), theos_ios)
HAS_GCC := 0
DEPLOYMENT_IOSVERSION = 5.0
TARGET = iphone:latest:$(DEPLOYMENT_IOSVERSION)
ARCHS = armv7 armv7s
TARGET_IPHONEOS_DEPLOYMENT_VERSION=$(DEPLOYMENT_IOSVERSION)
THEOS_BUILD_DIR := objs
include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = $(TARGET_NAME)_libretro_ios
# QNX
else ifeq ($(platform), qnx)
TARGET := $(TARGET_NAME)_libretro_qnx.so
fpic := -fPIC
SHARED := -lcpp -lm -shared -Wl,-version-script=link.T -Wl,-no-undefined
HAS_GCC := 0
CC = qcc -Vgcc_ntoarmv7le
CXX = QCC -Vgcc_ntoarmv7le_cpp
AR = QCC -Vgcc_ntoarmv7le
PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp
# PS3
else ifeq ($(platform), ps3)
HAVE_GCC_WARNINGS := 0
TARGET := $(TARGET_NAME)_libretro_ps3.a
CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
AR = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ar.exe
PLATFORM_DEFINES := -D__CELLOS_LV2__
STATIC_LINKING = 1
# sncps3
else ifeq ($(platform), sncps3)
HAVE_GCC_WARNINGS := 0
TARGET := $(TARGET_NAME)_libretro_ps3.a
HAS_GCC := 0
CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
AR = $(CELL_SDK)/host-win32/sn/bin/ps3snarl.exe
PLATFORM_DEFINES := -D__CELLOS_LV2__
STATIC_LINKING = 1
# PSP
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = psp-gcc$(EXE_EXT)
CXX = psp-g++$(EXE_EXT)
AR = psp-ar$(EXE_EXT)
PLATFORM_DEFINES := -DPSP -G0
STATIC_LINKING = 1
# Vita
else ifeq ($(platform), vita)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = arm-vita-eabi-gcc$(EXE_EXT)
CXX = arm-vita-eabi-g++$(EXE_EXT)
AR = arm-vita-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES := -DVITA -fno-short-enums
STATIC_LINKING = 1
# CTR(3DS)
else ifeq ($(platform), ctr)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITARM)/bin/arm-none-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITARM)/bin/arm-none-eabi-g++$(EXE_EXT)
AR = $(DEVKITARM)/bin/arm-none-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES := -DARM11 -D_3DS
PLATFORM_DEFINES += -march=armv6k -mtune=mpcore -mfloat-abi=hard
PLATFORM_DEFINES += -mword-relocations
PLATFORM_DEFINES += -fomit-frame-pointer -fstrict-aliasing -ffast-math
STATIC_LINKING = 1
# Raspberry Pi 2 (Raspbian)
else ifeq ($(platform), rpi2)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
PLATFORM_DEFINES += -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math
PLATFORM_DEFINES += -DARM
# Raspberry Pi 3 (Raspbian)
else ifeq ($(platform), rpi3)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
PLATFORM_DEFINES += -marm -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ffast-math
PLATFORM_DEFINES += -DARM
# Lightweight PS3 Homebrew SDK
else ifeq ($(platform), psl1ght)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(PS3DEV)/ppu/bin/ppu-gcc$(EXE_EXT)
CXX = $(PS3DEV)/ppu/bin/ppu-g++$(EXE_EXT)
AR = $(PS3DEV)/ppu/bin/ppu-ar$(EXE_EXT)
PLATFORM_DEFINES := -D__CELLOS_LV2__
STATIC_LINKING = 1
# Windows MSVC 2003 Xbox 1
else ifeq ($(platform), xbox1_msvc2003)
TARGET := $(TARGET_NAME)_libretro_xdk1.lib
CC = CL.exe
CXX = CL.exe
LD = lib.exe
export INCLUDE := $(XDK)/xbox/include
export LIB := $(XDK)/xbox/lib
PATH := $(call unixcygpath,$(XDK)/xbox/bin/vc71):$(PATH)
PSS_STYLE :=2
CFLAGS += -D_XBOX -D_XBOX1
CXXFLAGS += -D_XBOX -D_XBOX1
STATIC_LINKING=1
HAS_GCC := 0
# Windows MSVC 2010 Xbox 360
else ifeq ($(platform), xbox360_msvc2010)
TARGET := $(TARGET_NAME)_libretro_xdk360.lib
MSVCBINDIRPREFIX = $(XEDK)/bin/win32
CC = "$(MSVCBINDIRPREFIX)/cl.exe"
CXX = "$(MSVCBINDIRPREFIX)/cl.exe"
LD = "$(MSVCBINDIRPREFIX)/lib.exe"
export INCLUDE := $(XEDK)/include/xbox
export LIB := $(XEDK)/lib/xbox
PSS_STYLE :=2
CFLAGS += -D_XBOX -D_XBOX360
CXXFLAGS += -D_XBOX -D_XBOX360
STATIC_LINKING=1
HAS_GCC := 0
# Windows MSVC 2003 x86
else ifeq ($(platform), windows_msvc2003_x86)
CC = cl.exe
CXX = cl.exe
PATH := $(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../../Vc7/bin"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../../Vc7/include")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS71COMNTOOLS)../../Vc7/lib")
BIN := $(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../../Vc7/bin")
WindowsSdkDir := $(INETSDK)
export INCLUDE := $(INCLUDE);$(INETSDK)/Include;libretro-common/include/compat/msvc
export LIB := $(LIB);$(WindowsSdkDir);$(INETSDK)/Lib
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
CFLAGS += -D_CRT_SECURE_NO_DEPRECATE
WINDOWS_VERSION=1
# Windows MSVC 2017 all architectures
else ifneq (,$(findstring windows_msvc2017,$(platform)))
PlatformSuffix = $(subst windows_msvc2017_,,$(platform))
ifneq (,$(findstring desktop,$(PlatformSuffix)))
WinPartition = desktop
MSVC2017CompileFlags = -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP
LDFLAGS += -MANIFEST -LTCG:incremental -NXCOMPAT -DYNAMICBASE -DEBUG -OPT:REF -INCREMENTAL:NO -SUBSYSTEM:WINDOWS -MANIFESTUAC:"level='asInvoker' uiAccess='false'" -OPT:ICF -ERRORREPORT:PROMPT -NOLOGO -TLBID:1
LIBS += kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
else ifneq (,$(findstring uwp,$(PlatformSuffix)))
WinPartition = uwp
MSVC2017CompileFlags = -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WINDLL -D_UNICODE -DUNICODE -D__WRL_NO_DEFAULT_LIB__ -EHsc
LDFLAGS += -APPCONTAINER -NXCOMPAT -DYNAMICBASE -MANIFEST:NO -LTCG -OPT:REF -SUBSYSTEM:CONSOLE -MANIFESTUAC:NO -OPT:ICF -ERRORREPORT:PROMPT -NOLOGO -TLBID:1 -DEBUG:FULL -WINMD:NO
LIBS += WindowsApp.lib
endif
CFLAGS += $(MSVC2017CompileFlags)
CXXFLAGS += $(MSVC2017CompileFlags)
TargetArchMoniker = $(subst $(WinPartition)_,,$(PlatformSuffix))
CC = cl.exe
CXX = cl.exe
LD = link.exe
reg_query = $(call filter_out2,$(subst $2,,$(shell reg query "$2" -v "$1" 2>nul)))
fix_path = $(subst $(SPACE),\ ,$(subst \,/,$1))
ProgramFiles86w := $(shell cmd /c "echo %PROGRAMFILES(x86)%")
ProgramFiles86 := $(shell cygpath "$(ProgramFiles86w)")
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir := $(WindowsSdkDir)
WindowsSDKVersion ?= $(firstword $(foreach folder,$(subst $(subst \,/,$(WindowsSdkDir)Include/),,$(wildcard $(call fix_path,$(WindowsSdkDir)Include\*))),$(if $(wildcard $(call fix_path,$(WindowsSdkDir)Include/$(folder)/um/Windows.h)),$(folder),)))$(BACKSLASH)
WindowsSDKVersion := $(WindowsSDKVersion)
VsInstallBuildTools = $(ProgramFiles86)/Microsoft Visual Studio/2017/BuildTools
VsInstallEnterprise = $(ProgramFiles86)/Microsoft Visual Studio/2017/Enterprise
VsInstallProfessional = $(ProgramFiles86)/Microsoft Visual Studio/2017/Professional
VsInstallCommunity = $(ProgramFiles86)/Microsoft Visual Studio/2017/Community
VsInstallRoot ?= $(shell if [ -d "$(VsInstallBuildTools)" ]; then echo "$(VsInstallBuildTools)"; fi)
ifeq ($(VsInstallRoot), )
VsInstallRoot = $(shell if [ -d "$(VsInstallEnterprise)" ]; then echo "$(VsInstallEnterprise)"; fi)
endif
ifeq ($(VsInstallRoot), )
VsInstallRoot = $(shell if [ -d "$(VsInstallProfessional)" ]; then echo "$(VsInstallProfessional)"; fi)
endif
ifeq ($(VsInstallRoot), )
VsInstallRoot = $(shell if [ -d "$(VsInstallCommunity)" ]; then echo "$(VsInstallCommunity)"; fi)
endif
VsInstallRoot := $(VsInstallRoot)
VcCompilerToolsVer := $(shell cat "$(VsInstallRoot)/VC/Auxiliary/Build/Microsoft.VCToolsVersion.default.txt" | grep -o '[0-9\.]*')
VcCompilerToolsDir := $(VsInstallRoot)/VC/Tools/MSVC/$(VcCompilerToolsVer)
WindowsSDKSharedIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\shared")
WindowsSDKUCRTIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\ucrt")
WindowsSDKUMIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\um")
WindowsSDKUCRTLibDir := $(shell cygpath -w "$(WindowsSdkDir)\Lib\$(WindowsSDKVersion)\ucrt\$(TargetArchMoniker)")
WindowsSDKUMLibDir := $(shell cygpath -w "$(WindowsSdkDir)\Lib\$(WindowsSDKVersion)\um\$(TargetArchMoniker)")
# For some reason the HostX86 compiler doesn't like compiling for x64
# ("no such file" opening a shared library), and vice-versa.
# Work around it for now by using the strictly x86 compiler for x86, and x64 for x64.
# NOTE: What about ARM?
ifneq (,$(findstring x64,$(TargetArchMoniker)))
VCCompilerToolsBinDir := $(VcCompilerToolsDir)\bin\HostX64
else
VCCompilerToolsBinDir := $(VcCompilerToolsDir)\bin\HostX86
endif
PATH := $(shell IFS=$$'\n'; cygpath "$(VCCompilerToolsBinDir)/$(TargetArchMoniker)"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VsInstallRoot)/Common7/IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VcCompilerToolsDir)/include")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VcCompilerToolsDir)/lib/$(TargetArchMoniker)")
ifneq (,$(findstring uwp,$(PlatformSuffix)))
LIB := $(shell IFS=$$'\n'; cygpath -w "$(LIB)/store")
endif
export INCLUDE := $(INCLUDE);$(WindowsSDKSharedIncludeDir);$(WindowsSDKUCRTIncludeDir);$(WindowsSDKUMIncludeDir)
export LIB := $(LIB);$(WindowsSDKUCRTLibDir);$(WindowsSDKUMLibDir)
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
HAS_GCC := 0
# Xbox 360
else ifeq ($(platform), xenon)
TARGET := $(TARGET_NAME)_libretro_xenon360.a
CC = xenon-gcc$(EXE_EXT)
CXX = xenon-g++$(EXE_EXT)
AR = xenon-ar$(EXE_EXT)
PLATFORM_DEFINES := -D__LIBXENON__
STATIC_LINKING = 1
# Nintendo Game Cube
else ifeq ($(platform), ngc)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float
PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
# Nintendo Wii
else ifeq ($(platform), wii)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float
PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
# Nintendo WiiU
else ifeq ($(platform), wiiu)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
PLATFORM_DEFINES += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi -mhard-float
PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING = 1
# Nintendo Switch (libtransistor)
else ifeq ($(platform), switch)
EXT=a
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
STATIC_LINKING=1
# Nintendo Switch (libnx)
else ifeq ($(platform), libnx)
include $(DEVKITPRO)/libnx/switch_rules
EXT=a
TARGET := $(TARGET_NAME)_libretro_$(platform).$(EXT)
DEFINES := -DSWITCH=1 -U__linux__ -U__linux -DRARCH_INTERNAL
CFLAGS := $(DEFINES) -g -O3 \
-fPIE -I$(LIBNX)/include/ -ffunction-sections -fdata-sections -ftls-model=local-exec -Wl,--allow-multiple-definition -specs=$(LIBNX)/switch.specs
CFLAGS += $(INCDIRS)
CFLAGS += -D__SWITCH__ -DHAVE_LIBNX -march=armv8-a -mtune=cortex-a57 -mtp=soft
CXXFLAGS := $(ASFLAGS) $(CFLAGS) -fno-rtti -std=gnu++11
CFLAGS += -std=gnu11
STATIC_LINKING = 1
# Classic Platforms ####################
# Platform affix = classic_<ISA>_<µARCH>
# Help at https://modmyclassic.com/comp
# (armv7 a7, hard point, neon based) ###
# NESC, SNESC, C64 mini
else ifeq ($(platform), classic_armv7_a7)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,--version-script=link.T -Wl,-no-undefined
CFLAGS += -Ofast \
-flto=4 -fwhole-program -fuse-linker-plugin \
-fdata-sections -ffunction-sections -Wl,--gc-sections \
-fno-stack-protector -fno-ident -fomit-frame-pointer \
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
-fmerge-all-constants -fno-math-errno \
-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
CXXFLAGS += $(CFLAGS)
CPPFLAGS += $(CFLAGS)
ASFLAGS += $(CFLAGS)
HAVE_NEON = 1
ARCH = arm
BUILTIN_GPU = neon
USE_DYNAREC = 1
ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
CFLAGS += -march=armv7-a
else
CFLAGS += -march=armv7ve
# If gcc is 5.0 or later
ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
LDFLAGS += -static-libgcc -static-libstdc++
endif
endif
#######################################
# ARM
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
ifneq (,$(findstring cortexa5,$(platform)))
PLATFORM_DEFINES += -marm -mcpu=cortex-a5
else ifneq (,$(findstring cortexa8,$(platform)))
PLATFORM_DEFINES += -marm -mcpu=cortex-a8
else ifneq (,$(findstring cortexa9,$(platform)))
PLATFORM_DEFINES += -marm -mcpu=cortex-a9
else ifneq (,$(findstring cortexa15a7,$(platform)))
PLATFORM_DEFINES += -marm -mcpu=cortex-a15.cortex-a7
else
PLATFORM_DEFINES += -marm
endif
ifneq (,$(findstring softfloat,$(platform)))
PLATFORM_DEFINES += -mfloat-abi=softfp
else ifneq (,$(findstring hardfloat,$(platform)))
PLATFORM_DEFINES += -mfloat-abi=hard
endif
PLATFORM_DEFINES += -DARM
else ifeq ($(platform),emscripten)
TARGET := $(TARGET_NAME)_libretro_$(platform).bc
STATIC_LINKING = 1
# Windows MSVC 2017 all architectures
else ifneq (,$(findstring windows_msvc2017,$(platform)))
PlatformSuffix = $(subst windows_msvc2017_,,$(platform))
ifneq (,$(findstring desktop,$(PlatformSuffix)))
WinPartition = desktop
CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP
LDFLAGS += -MANIFEST -LTCG:incremental -NXCOMPAT -DYNAMICBASE -DEBUG -OPT:REF -INCREMENTAL:NO -SUBSYSTEM:WINDOWS -MANIFESTUAC:"level='asInvoker' uiAccess='false'" -OPT:ICF -ERRORREPORT:PROMPT -NOLOGO -TLBID:1
LIBS += kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
else ifneq (,$(findstring uwp,$(PlatformSuffix)))
WinPartition = uwp
CFLAGS += -DWINAPI_FAMILY=WINAPI_FAMILY_APP -DWINDLL -D_UNICODE -DUNICODE -DWRL_NO_DEFAULT_LIB
LDFLAGS += -APPCONTAINER -NXCOMPAT -DYNAMICBASE -MANIFEST:NO -LTCG -OPT:REF -SUBSYSTEM:CONSOLE -MANIFESTUAC:NO -OPT:ICF -ERRORREPORT:PROMPT -NOLOGO -TLBID:1 -DEBUG:FULL -WINMD:NO
LIBS += WindowsApp.lib
endif
TargetArchMoniker = $(subst $(WinPartition)_,,$(PlatformSuffix))
CC = cl.exe
CXX = cl.exe
reg_query = $(call filter_out2,$(subst $2,,$(shell reg query "$2" -v "$1" 2>nul)))
fix_path = $(subst $(SPACE),\ ,$(subst \,/,$1))
ProgramFiles86w := $(shell cmd /c "echo %PROGRAMFILES(x86)%")
ProgramFiles86 := $(shell cygpath "$(ProgramFiles86w)")
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir := $(WindowsSdkDir)
WindowsSDKVersion ?= $(firstword $(foreach folder,$(subst $(subst \,/,$(WindowsSdkDir)Include/),,$(wildcard $(call fix_path,$(WindowsSdkDir)Include\*))),$(if $(wildcard $(call fix_path,$(WindowsSdkDir)Include/$(folder)/um/Windows.h)),$(folder),)))$(BACKSLASH)
WindowsSDKVersion := $(WindowsSDKVersion)
VsInstallBuildTools = $(ProgramFiles86)/Microsoft Visual Studio/2017/BuildTools
VsInstallEnterprise = $(ProgramFiles86)/Microsoft Visual Studio/2017/Enterprise
VsInstallProfessional = $(ProgramFiles86)/Microsoft Visual Studio/2017/Professional
VsInstallCommunity = $(ProgramFiles86)/Microsoft Visual Studio/2017/Community
VsInstallRoot ?= $(shell if [ -d "$(VsInstallBuildTools)" ]; then echo "$(VsInstallBuildTools)"; fi)
ifeq ($(VsInstallRoot), )
VsInstallRoot = $(shell if [ -d "$(VsInstallEnterprise)" ]; then echo "$(VsInstallEnterprise)"; fi)
endif
ifeq ($(VsInstallRoot), )
VsInstallRoot = $(shell if [ -d "$(VsInstallProfessional)" ]; then echo "$(VsInstallProfessional)"; fi)
endif
ifeq ($(VsInstallRoot), )
VsInstallRoot = $(shell if [ -d "$(VsInstallCommunity)" ]; then echo "$(VsInstallCommunity)"; fi)
endif
VsInstallRoot := $(VsInstallRoot)
VcCompilerToolsVer := $(shell cat "$(VsInstallRoot)/VC/Auxiliary/Build/Microsoft.VCToolsVersion.default.txt" | grep -o '[0-9\.]*')
VcCompilerToolsDir := $(VsInstallRoot)/VC/Tools/MSVC/$(VcCompilerToolsVer)
WindowsSDKSharedIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\shared")
WindowsSDKUCRTIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\ucrt")
WindowsSDKUMIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\$(WindowsSDKVersion)\um")
WindowsSDKUCRTLibDir := $(shell cygpath -w "$(WindowsSdkDir)\Lib\$(WindowsSDKVersion)\ucrt\$(TargetArchMoniker)")
WindowsSDKUMLibDir := $(shell cygpath -w "$(WindowsSdkDir)\Lib\$(WindowsSDKVersion)\um\$(TargetArchMoniker)")
# For some reason the HostX86 compiler doesn't like compiling for x64
# ("no such file" opening a shared library), and vice-versa.
# Work around it for now by using the strictly x86 compiler for x86, and x64 for x64.
# NOTE: What about ARM?
ifneq (,$(findstring x64,$(TargetArchMoniker)))
VCCompilerToolsBinDir := $(VcCompilerToolsDir)\bin\HostX64
else
VCCompilerToolsBinDir := $(VcCompilerToolsDir)\bin\HostX86
endif
PATH := $(shell IFS=$$'\n'; cygpath "$(VCCompilerToolsBinDir)/$(TargetArchMoniker)"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VsInstallRoot)/Common7/IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VcCompilerToolsDir)/include")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VcCompilerToolsDir)/lib/$(TargetArchMoniker)")
export INCLUDE := $(INCLUDE);$(WindowsSDKSharedIncludeDir);$(WindowsSDKUCRTIncludeDir);$(WindowsSDKUMIncludeDir)
export LIB := $(LIB);$(WindowsSDKUCRTLibDir);$(WindowsSDKUMLibDir)
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
HAS_GCC := 0
# Windows MSVC 2010 x64
else ifeq ($(platform), windows_msvc2010_x64)
CC = cl.exe
CXX = cl.exe
HAS_GCC := 0
PATH := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/bin/amd64"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE")
LIB := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/lib/amd64")
INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/include")
WindowsSdkDir := $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')lib/x64
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')lib/x64
WindowsSdkDirInc := $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')Include
WindowsSdkDirInc ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')Include
INCFLAGS_PLATFORM = -I"$(WindowsSdkDirInc)"
export INCLUDE := $(INCLUDE)
export LIB := $(LIB);$(WindowsSdkDir)
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
HAS_GCC := 0
# Windows MSVC 2010 x86
else ifeq ($(platform), windows_msvc2010_x86)
CC = cl.exe
CXX = cl.exe
HAS_GCC := 0
PATH := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/bin"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS100COMNTOOLS)../../VC/lib")
INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../../VC/include")
WindowsSdkDir := $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')lib
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')lib
WindowsSdkDirInc := $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')Include
WindowsSdkDirInc ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')Include
INCFLAGS_PLATFORM = -I"$(WindowsSdkDirInc)"
export INCLUDE := $(INCLUDE)
export LIB := $(LIB);$(WindowsSdkDir)
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
# Windows MSVC 2005 x86
else ifeq ($(platform), windows_msvc2005_x86)
CC = cl.exe
CXX = cl.exe
HAS_GCC := 0
PATH := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/include")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS80COMNTOOLS)../../VC/lib")
BIN := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin")
WindowsSdkDir := $(INETSDK)
export INCLUDE := $(INCLUDE);$(INETSDK)/Include;libretro-common/include/compat/msvc
export LIB := $(LIB);$(WindowsSdkDir);$(INETSDK)/Lib
TARGET := $(TARGET_NAME)_libretro.dll
PSS_STYLE :=2
LDFLAGS += -DLL
CFLAGS += -D_CRT_SECURE_NO_DEPRECATE
# Windows
else
TARGET := $(TARGET_NAME)_libretro.dll
CC ?= gcc
CXX ?= g++
SHARED := -shared -static-libgcc -static-libstdc++ -Wl,-no-undefined -Wl,-version-script=link.T
endif
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
ifeq ($(DEBUG), 1)
ifneq (,$(findstring msvc,$(platform)))
ifeq ($(STATIC_LINKING),1)
CFLAGS += -MTd
CXXFLAGS += -MTd
else
CFLAGS += -MDd
CXXFLAGS += -MDd
endif
CFLAGS += -Od -Zi -DDEBUG -D_DEBUG
CXXFLAGS += -Od -Zi -DDEBUG -D_DEBUG
else
CFLAGS += -O0 -g -DDEBUG
CXXFLAGS += -O0 -g -DDEBUG
endif
else
ifneq (,$(findstring msvc,$(platform)))
ifeq ($(STATIC_LINKING),1)
CFLAGS += -MT
CXXFLAGS += -MT
else
CFLAGS += -MD
CXXFLAGS += -MD
endif
CFLAGS += -O2 -DNDEBUG
CXXFLAGS += -O2 -DNDEBUG
else
CFLAGS += -O2 -DNDEBUG
CXXFLAGS += -O2 -DNDEBUG
endif
endif
CORE_DIR = ..
include Makefile.common
OBJECTS := $(SOURCES_CXX:.cpp=.o)
ifeq ($(HAS_GCC), 1)
C_VER = -std=gnu99
CXXFLAGS += -std=c++98
CXXFLAGS += -fno-rtti
endif
DEFINES := -D__LIBRETRO__ $(PLATFORM_DEFINES) $(GCC_FLAGS) $(GCC_WARNINGS) -DNST_NO_ZLIB $(INCFLAGS) $(INCFLAGS_PLATFORM)
CFLAGS += $(fpic) $(DEFINES) $(C_VER)
CXXFLAGS += $(fpic) $(DEFINES)
INCDIRS := -I$(CORE_DIR) -I$(CORE_DIR)/source
OBJOUT = -o
LINKOUT = -o
ifneq (,$(findstring msvc,$(platform)))
OBJOUT = -Fo
LINKOUT = -out:
ifeq ($(STATIC_LINKING),1)
LD ?= lib.exe
STATIC_LINKING=0
else
LD = link.exe
endif
else
LD = $(CXX)
endif
ifeq ($(platform), theos_ios)
COMMON_FLAGS := -DIOS $(DEFINES) $(INCFLAGS) $(INCDIRS) -I$(THEOS_INCLUDE_PATH) -Wno-error
$(LIBRARY_NAME)_CFLAGS += $(CFLAGS) $(COMMON_FLAGS)
$(LIBRARY_NAME)_CXXFLAGS += $(CXXFLAGS) $(COMMON_FLAGS)
${LIBRARY_NAME}_FILES = $(SOURCES_CXX) $(SOURCES_C)
include $(THEOS_MAKE_PATH)/library.mk
else
all: $(TARGET)
$(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJECTS)
else
$(LD) $(LINKOUT)$@ $(SHARED) $(OBJECTS) $(LDFLAGS) $(LIBS)
endif
%.o: %.cpp
$(CXX) $(CPPFLAGS) -c $(OBJOUT)$@ $< $(CXXFLAGS) $(INCDIRS)
%.o: %.c
$(CC) $(CPPFLAGS) -c $(OBJOUT)$@ $< $(CFLAGS) $(INCDIRS)
clean-objs:
rm -f $(OBJECTS)
clean:
rm -f $(OBJECTS)
rm -f $(TARGET)
install:
install -D -m 755 $(TARGET) $(DESTDIR)$(libdir)/$(LIBRETRO_DIR)/$(TARGET)
uninstall:
rm $(DESTDIR)$(libdir)/$(LIBRETRO_DIR)/$(TARGET)
.PHONY: clean clean-objs
endif

View file

@ -1,308 +0,0 @@
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro/libretro-common
INCFLAGS := -I$(CORE_DIR)/libretro -I$(CORE_DIR) -I$(LIBRETRO_COMM_DIR)/include
ifneq (,$(findstring msvc2003,$(platform)))
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
endif
# Core
SOURCES_CXX =
SOURCES_CXX += $(CORE_DIR)/source/core/NstApu.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstAssert.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCartridge.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCartridgeInes.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCartridgeRomset.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCartridgeUnif.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCheats.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstChecksum.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstChips.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCore.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCpu.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstCrc32.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstFds.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstFile.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstHomebrew.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstImage.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstImageDatabase.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstLog.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstMachine.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstMemory.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstNsf.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstPatcher.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstPatcherIps.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstPatcherUps.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstPins.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstPpu.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstProperties.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstRam.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstSha1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstSoundPcm.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstSoundPlayer.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstSoundRenderer.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstState.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstStream.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstTracker.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstTrackerMovie.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstTrackerRewinder.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstVector.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstVideoFilterNone.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstVideoFilterNtsc.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstVideoFilterNtscCfg.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstVideoRenderer.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstVideoScreen.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstXml.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/NstZlib.cpp
# API
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiBarcodeReader.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiCartridge.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiCheats.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiDipSwitches.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiEmulator.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiFds.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiHomebrew.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiInput.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiMachine.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiMovie.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiNsf.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiRewinder.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiSound.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiTapeRecorder.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiUser.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/api/NstApiVideo.cpp
# Board
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAcclaimMcAcc.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAction53.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAe.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAgci.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAveD1012.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAveNina.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardAxRom.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandai24c0x.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandaiAerobicsStudio.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandaiDatach.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandaiKaraokeStudio.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandaiLz93d50.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandaiLz93d50ex.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBandaiOekaKids.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBenshengBs5.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc110in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc1200in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc150in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc15in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc20in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc21in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc22Games.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc31in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc35in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc36in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc64in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc72in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc76in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc800in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc8157.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmc9999999in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcA65as.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcBallgames11in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcCh001.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcCtc65.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcFamily4646B.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcFk23c.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcGamestarA.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcGamestarB.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcGolden190in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcGoldenCard6in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcGoldenGame260in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcHero.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcMarioParty7in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcNovelDiamond.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcPowerjoy84in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcResetBased4in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuper22Games.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuper24in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuper40in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuper700in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuperBig7in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuperGun20in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuperHiK300in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuperHiK4in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcSuperVision16in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcT262.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcVrc4.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcVt5201.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBmcY2k64in1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtl2708.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtl6035052.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlAx5705.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlDragonNinja.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlGeniusMerioBros.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlMarioBaby.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlPikachuY2k.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlShuiGuanPipe.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlSmb2a.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlSmb2b.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlSmb2c.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlSmb3.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlSuperBros11.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlT230.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBtlTobidaseDaisakusen.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardBxRom.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCaltron.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCamerica.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCneDecathlon.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCnePsb.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCneShlz.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCony.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoard.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardCxRom.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardDiscrete.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardDreamtech.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardEvent.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardFb.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardFfe.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardFujiya.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardFukutake.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardFutureMedia.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardGouder.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardGxRom.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardHenggedianzi.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardHes.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardHosenkan.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardInlNsf.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardIremG101.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardIremH3001.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardIremHolyDiver.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardIremKaiketsu.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardIremLrog017.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJalecoJf11.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJalecoJf13.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJalecoJf16.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJalecoJf17.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJalecoJf19.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJalecoSs88006.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardJyCompany.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKaiser.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKasing.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKayH2288.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKayPandaPrince.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVrc1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVrc2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVrc3.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVrc4.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVrc6.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVrc7.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardKonamiVsSystem.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMagicKidGoogoo.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMagicSeries.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMmc1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMmc2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMmc3.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMmc4.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMmc5.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardMmc6.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNamcot163.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNamcot175.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNamcot34xx.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNanjing.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNihon.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNitra.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardNtdec.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardOpenCorp.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardQj.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardRcm.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardRexSoftDb5z.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardRexSoftSl1632.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardRumbleStation.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachen74x374.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenS8259.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenSa0036.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenSa0037.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenSa72007.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenSa72008.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenStreetHeroes.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenTca01.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSachenTcu.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSomeriTeamSl12.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSubor.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoft1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoft2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoft3.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoft4.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoft5b.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoftDcs.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSunsoftFme7.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSuperGameBoogerman.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSuperGameLionKing.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardSuperGamePocahontas2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTaitoTc0190fmc.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTaitoTc0190fmcPal16r4.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTaitoX1005.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTaitoX1017.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTengen.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTengenRambo1.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTxc.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTxcMxmdhtwo.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTxcPoliceman.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTxcTw.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardTxRom.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlA9746.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlCc21.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlEdu2000.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlKingOfFighters96.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlKingOfFighters97.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlMortalKombat2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlN625092.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlSuperFighter3.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlTf1201.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlWorldHero.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUnlXzy.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardUxRom.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardVsSystem.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixing.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingFfv.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingPs2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingSecurity.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingSgz.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingSgzlz.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingSh2.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWaixingZs.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardWhirlwind.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/board/NstBoardZz.cpp
# Input
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpAdapter.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpBandaiHyperShot.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpBarcodeWorld.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpCrazyClimber.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpDoremikkoKeyboard.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpExcitingBoxing.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpFamilyKeyboard.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpFamilyTrainer.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpHoriTrack.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpKonamiHyperShot.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpMahjong.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpMouse.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpOekaKidsTablet.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPachinko.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPad.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPaddle.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPartyTap.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPokkunMoguraa.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPowerGlove.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpPowerPad.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpRob.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpSuborKeyboard.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpTopRider.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpTurboFile.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/input/NstInpZapper.cpp
# VS System
SOURCES_CXX += $(CORE_DIR)/source/core/vssystem/NstVsRbiBaseball.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/vssystem/NstVsSuperXevious.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/vssystem/NstVsSystem.cpp
SOURCES_CXX += $(CORE_DIR)/source/core/vssystem/NstVsTkoBoxing.cpp
# libretro
SOURCES_CXX += $(CORE_DIR)/libretro/libretro.cpp

View file

@ -1,10 +0,0 @@
Package: com.libretro.nestopia
Name: nestopia
Depends:
Version: 0.0.1
Architecture: iphoneos-arm
Description: Libretro iOS core of Nestopia
Maintainer: libretro
Author: libretro
Section: System
Tag: role::developer

View file

@ -1,21 +0,0 @@
LOCAL_PATH := $(call my-dir)
CORE_DIR = $(LOCAL_PATH)/../..
include $(CORE_DIR)/libretro/Makefile.common
COREFLAGS := -DANDROID -D__LIBRETRO__ $(INCFLAGS) -Wno-c++11-narrowing
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_CXX)
LOCAL_CXXFLAGS := $(COREFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/libretro/link.T
LOCAL_LDLIBS := -lz
LOCAL_CPP_FEATURES := exceptions
include $(BUILD_SHARED_LIBRARY)

View file

@ -1,2 +0,0 @@
APP_STL := c++_static
APP_ABI := all

View file

@ -1,258 +0,0 @@
/* ISO C9x compliant stdint.h for Microsoft Visual Studio
* Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
*
* Copyright (c) 2006-2008 Alexander Chemeris
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. The name of the author may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __RARCH_STDINT_H
#define __RARCH_STDINT_H
#if _MSC_VER && (_MSC_VER < 1600)
/* Pre-MSVC 2010 needs an implementation of stdint.h. */
#if _MSC_VER > 1000
#pragma once
#endif
#include <limits.h>
/* For Visual Studio 6 in C++ mode and for many Visual Studio versions when
* compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
* or compiler give many errors like this:
*
* error C2733: second C linkage of overloaded function 'wmemchr' not allowed
*/
#ifdef __cplusplus
#if _MSC_VER <= 1200
extern "C++" {
#else
extern "C" {
#endif
#endif
# include <wchar.h>
#ifdef __cplusplus
}
#endif
/* Define _W64 macros to mark types changing their size, like intptr_t. */
#ifndef _W64
# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
# define _W64 __w64
# else
# define _W64
# endif
#endif
/* 7.18.1 Integer types. */
/* 7.18.1.1 Exact-width integer types. */
/* Visual Studio 6 and Embedded Visual C++ 4 doesn't
* realize that, e.g. char has the same size as __int8
* so we give up on __intX for them.
*/
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#else
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#endif
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
/* 7.18.1.2 Minimum-width integer types. */
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;
/* 7.18.1.3 Fastest minimum-width integer types. */
typedef int8_t int_fast8_t;
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef int64_t int_fast64_t;
typedef uint8_t uint_fast8_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;
/* 7.18.1.4 Integer types capable of holding object pointers. */
#ifdef _WIN64 /* [ */
typedef signed __int64 intptr_t;
typedef unsigned __int64 uintptr_t;
#else /* _WIN64 ][ */
typedef _W64 signed int intptr_t;
typedef _W64 unsigned int uintptr_t;
#endif /* _WIN64 ] */
/* 7.18.1.5 Greatest-width integer types. */
typedef int64_t intmax_t;
typedef uint64_t uintmax_t;
/* 7.18.2 Limits of specified-width integer types. */
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
/* [ See footnote 220 at page 257 and footnote 221 at page 259. */
/* 7.18.2.1 Limits of exact-width integer types. */
#define INT8_MIN ((int8_t)_I8_MIN)
#define INT8_MAX _I8_MAX
#define INT16_MIN ((int16_t)_I16_MIN)
#define INT16_MAX _I16_MAX
#define INT32_MIN ((int32_t)_I32_MIN)
#define INT32_MAX _I32_MAX
#define INT64_MIN ((int64_t)_I64_MIN)
#define INT64_MAX _I64_MAX
#define UINT8_MAX _UI8_MAX
#define UINT16_MAX _UI16_MAX
#define UINT32_MAX _UI32_MAX
#define UINT64_MAX _UI64_MAX
/* 7.18.2.2 Limits of minimum-width integer types. */
#define INT_LEAST8_MIN INT8_MIN
#define INT_LEAST8_MAX INT8_MAX
#define INT_LEAST16_MIN INT16_MIN
#define INT_LEAST16_MAX INT16_MAX
#define INT_LEAST32_MIN INT32_MIN
#define INT_LEAST32_MAX INT32_MAX
#define INT_LEAST64_MIN INT64_MIN
#define INT_LEAST64_MAX INT64_MAX
#define UINT_LEAST8_MAX UINT8_MAX
#define UINT_LEAST16_MAX UINT16_MAX
#define UINT_LEAST32_MAX UINT32_MAX
#define UINT_LEAST64_MAX UINT64_MAX
/* 7.18.2.3 Limits of fastest minimum-width integer types. */
#define INT_FAST8_MIN INT8_MIN
#define INT_FAST8_MAX INT8_MAX
#define INT_FAST16_MIN INT16_MIN
#define INT_FAST16_MAX INT16_MAX
#define INT_FAST32_MIN INT32_MIN
#define INT_FAST32_MAX INT32_MAX
#define INT_FAST64_MIN INT64_MIN
#define INT_FAST64_MAX INT64_MAX
#define UINT_FAST8_MAX UINT8_MAX
#define UINT_FAST16_MAX UINT16_MAX
#define UINT_FAST32_MAX UINT32_MAX
#define UINT_FAST64_MAX UINT64_MAX
/* 7.18.2.4 Limits of integer types capable of holding object pointers. */
#ifdef _WIN64 /* [ */
# define INTPTR_MIN INT64_MIN
# define INTPTR_MAX INT64_MAX
# define UINTPTR_MAX UINT64_MAX
#else /* _WIN64 ][ */
# define INTPTR_MIN INT32_MIN
# define INTPTR_MAX INT32_MAX
# define UINTPTR_MAX UINT32_MAX
#endif /* _WIN64 ] */
/* 7.18.2.5 Limits of greatest-width integer types */
#define INTMAX_MIN INT64_MIN
#define INTMAX_MAX INT64_MAX
#define UINTMAX_MAX UINT64_MAX
/* 7.18.3 Limits of other integer types */
#ifdef _WIN64 /* [ */
# define PTRDIFF_MIN _I64_MIN
# define PTRDIFF_MAX _I64_MAX
#else /* _WIN64 ][ */
# define PTRDIFF_MIN _I32_MIN
# define PTRDIFF_MAX _I32_MAX
#endif /* _WIN64 ] */
#define SIG_ATOMIC_MIN INT_MIN
#define SIG_ATOMIC_MAX INT_MAX
#ifndef SIZE_MAX /* [ */
# ifdef _WIN64 /* [ */
# define SIZE_MAX _UI64_MAX
# else /* _WIN64 ][ */
# define SIZE_MAX _UI32_MAX
# endif /* _WIN64 ] */
#endif /* SIZE_MAX ] */
/* WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h> */
#ifndef WCHAR_MIN /* [ */
# define WCHAR_MIN 0
#endif /* WCHAR_MIN ] */
#ifndef WCHAR_MAX // [
# define WCHAR_MAX _UI16_MAX
#endif /* WCHAR_MAX ] */
#define WINT_MIN 0
#define WINT_MAX _UI16_MAX
#endif /* __STDC_LIMIT_MACROS ] */
/* 7.18.4 Limits of other integer types */
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
/* [ See footnote 224 at page 260 */
/* 7.18.4.1 Macros for minimum-width integer constants */
#define INT8_C(val) val##i8
#define INT16_C(val) val##i16
#define INT32_C(val) val##i32
#define INT64_C(val) val##i64
#define UINT8_C(val) val##ui8
#define UINT16_C(val) val##ui16
#define UINT32_C(val) val##ui32
#define UINT64_C(val) val##ui64
/* 7.18.4.2 Macros for greatest-width integer constants */
#define INTMAX_C INT64_C
#define UINTMAX_C UINT64_C
#endif
/* __STDC_CONSTANT_MACROS ] */
#else
/* Sanity for everything else. */
#include <stdint.h>
#endif
#endif

File diff suppressed because it is too large Load diff

View file

@ -1,39 +0,0 @@
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (retro_inline.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __LIBRETRO_SDK_INLINE_H
#define __LIBRETRO_SDK_INLINE_H
#ifndef INLINE
#if defined(_WIN32) || defined(__INTEL_COMPILER)
#define INLINE __inline
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
#define INLINE inline
#elif defined(__GNUC__)
#define INLINE __inline__
#else
#define INLINE
#endif
#endif
#endif

File diff suppressed because it is too large Load diff

View file

@ -1,427 +0,0 @@
#ifndef LIBRETRO_CORE_OPTIONS_H__
#define LIBRETRO_CORE_OPTIONS_H__
#include <stdlib.h>
#include <string.h>
#include <libretro.h>
#include <retro_inline.h>
#ifndef HAVE_NO_LANGEXTRA
#include "libretro_core_options_intl.h"
#endif
/*
********************************
* VERSION: 1.3
********************************
*
* - 1.3: Move translations to libretro_core_options_intl.h
* - libretro_core_options_intl.h includes BOM and utf-8
* fix for MSVC 2010-2013
* - Added HAVE_NO_LANGEXTRA flag to disable translations
* on platforms/compilers without BOM support
* - 1.2: Use core options v1 interface when
* RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION is >= 1
* (previously required RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION == 1)
* - 1.1: Support generation of core options v0 retro_core_option_value
* arrays containing options with a single value
* - 1.0: First commit
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
********************************
* Core Option Definitions
********************************
*/
/* RETRO_LANGUAGE_ENGLISH */
/* Default language:
* - All other languages must include the same keys and values
* - Will be used as a fallback in the event that frontend language
* is not available
* - Will be used as a fallback for any missing entries in
* frontend language definition */
struct retro_core_option_definition option_defs_us[] = {
{
"nestopia_blargg_ntsc_filter",
"Blargg NTSC Filter",
"Enable Blargg NTSC filters.",
{
{ "disabled", NULL },
{ "composite", "Composite Video" },
{ "svideo", "S-Video" },
{ "rgb", "RGB SCART" },
{ "monochrome", "Monochrome" },
{ NULL, NULL },
},
"disabled"
},
{
"nestopia_palette",
"Palette",
"Choose which color palette is going to be used.",
{
{ "cxa2025as", "CXA2025AS" },
{ "consumer", "Consumer" },
{ "canonical", "Canonical" },
{ "alternative", "Alternative" },
{ "rgb", "RGB" },
{ "pal", "PAL" },
{ "composite-direct-fbx", "Composite Direct FBx" },
{ "pvm-style-d93-fbx", "PVM-style D93 FBx" },
{ "ntsc-hardware-fbx", "NTSC hardware FBx" },
{ "nes-classic-fbx-fs", "NES Classic FBx FS" },
{ "raw", "Raw" },
{ "custom", "Custom" },
{ NULL, NULL },
},
"cxa2025as" /* TODO/FIXME - is this correct ? */
},
{
"nestopia_nospritelimit",
"Remove Sprite Limit",
"Remove 8-sprites-per-scanline hardware limit.",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"nestopia_overclock",
"CPU Speed (Overclock)",
"Overclock the emulated CPU.",
{
{ "1x", NULL },
{ "2x", NULL },
{ NULL, NULL },
},
"1x"
},
{
"nestopia_select_adapter",
"4 Player Adapter",
"Manually select a 4 Player Adapter if needed. Some games will not recognize the adapter correctly through the NstDatabase.xml database, this option should help fix that.",
{
{ "auto", "Auto" },
{ "ntsc", "NTSC" },
{ "famicom", "Famicom" },
{ NULL, NULL },
},
"auto"
},
{
"nestopia_fds_auto_insert",
"FDS Auto Instert",
"Automatically insert first FDS disk on reset.",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"enabled"
},
{
"nestopia_overscan_v",
"Mask Overscan (Vertical)",
"Mask out (vertically) the potentially random glitchy video output that would have been hidden by the bezel around the edge of a standard-definition television screen.",
{
{ "enabled", NULL },
{ "disabled", NULL },
{ NULL, NULL },
},
"enabled"
},
{
"nestopia_overscan_h",
"Mask Overscan (Horizontal)",
"Mask out (horizontally) the potentially random glitchy video output that would have been hidden by the bezel around the edge of a standard-definition television screen.",
{
{ "enabled", NULL },
{ "disabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"nestopia_aspect",
"Preferred Aspect Ratio",
"Choose the preferred aspect ratio. RetroArch's aspect ratio must be set to Core provided in the Video seetings. 'auto' will use the NstDatabase.xml database file for aspect ratio autodetection. If there is no database present it will default to NTSC for 'auto'.",
{
{ "auto", "Auto" },
{ "ntsc", "NTSC" },
{ "pal", "PAL" },
{ "4:3", "4:3" },
{ NULL, NULL },
},
"auto"
},
{
"nestopia_genie_distortion",
"Game Genie Sound Distortion",
"The Game Genie cheat device could inadvertently introduce sound distortion in games. By enabling this, you can simulate the distortion it would add to a game's sound.",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"nestopia_favored_system",
"System Region",
"Choose which region the system is from. 'Auto' will use the NstDatabase.xml database file for region autodetection. If there is no database present it will default to NTSC for 'Auto'.",
{
{ "auto", "Auto" },
{ "ntsc", "NTSC" },
{ "pal", "PAL" },
{ "famicom", "Famicom" },
{ "dendy", "Dendy" },
{ NULL, NULL },
},
"auto"
},
{
"nestopia_ram_power_state",
"RAM Power-on State",
"",
{
{ "0x00", NULL },
{ "0xFF", NULL },
{ "random", "Random" },
{ NULL, NULL },
},
"0x00"
},
{
"nestopia_button_shift",
"Shift Buttons Clockwise",
"Rotate A/B/X/Y button clockwise.", /* is this right? @gadsby */
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled"
},
{
"nestopia_turbo_pulse",
"Turbo Pulse Speed",
"Set the turbo pulse speed for the Turbo B and Turbo A buttons.",
{
{ "2", NULL },
{ "3", NULL },
{ "4", NULL },
{ "5", NULL },
{ "6", NULL },
{ "7", NULL },
{ "8", NULL },
{ "9", NULL },
{ NULL, NULL },
},
"2"
},
{ NULL, NULL, NULL, {{0}}, NULL },
};
/*
********************************
* Language Mapping
********************************
*/
#ifndef HAVE_NO_LANGEXTRA
struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
option_defs_us, /* RETRO_LANGUAGE_ENGLISH */
NULL, /* RETRO_LANGUAGE_JAPANESE */
NULL, /* RETRO_LANGUAGE_FRENCH */
NULL, /* RETRO_LANGUAGE_SPANISH */
NULL, /* RETRO_LANGUAGE_GERMAN */
NULL, /* RETRO_LANGUAGE_ITALIAN */
NULL, /* RETRO_LANGUAGE_DUTCH */
NULL, /* RETRO_LANGUAGE_PORTUGUESE_BRAZIL */
NULL, /* RETRO_LANGUAGE_PORTUGUESE_PORTUGAL */
NULL, /* RETRO_LANGUAGE_RUSSIAN */
NULL, /* RETRO_LANGUAGE_KOREAN */
NULL, /* RETRO_LANGUAGE_CHINESE_TRADITIONAL */
NULL, /* RETRO_LANGUAGE_CHINESE_SIMPLIFIED */
NULL, /* RETRO_LANGUAGE_ESPERANTO */
NULL, /* RETRO_LANGUAGE_POLISH */
NULL, /* RETRO_LANGUAGE_VIETNAMESE */
NULL, /* RETRO_LANGUAGE_ARABIC */
NULL, /* RETRO_LANGUAGE_GREEK */
option_defs_tr, /* RETRO_LANGUAGE_TURKISH */
};
#endif
/*
********************************
* Functions
********************************
*/
/* Handles configuration/setting of core options.
* Should be called as early as possible - ideally inside
* retro_set_environment(), and no later than retro_load_game()
* > We place the function body in the header to avoid the
* necessity of adding more .c files (i.e. want this to
* be as painless as possible for core devs)
*/
static INLINE void libretro_set_core_options(retro_environment_t environ_cb)
{
unsigned version = 0;
if (!environ_cb)
return;
if (environ_cb(RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION, &version) && (version >= 1))
{
#ifndef HAVE_NO_LANGEXTRA
struct retro_core_options_intl core_options_intl;
unsigned language = 0;
core_options_intl.us = option_defs_us;
core_options_intl.local = NULL;
if (environ_cb(RETRO_ENVIRONMENT_GET_LANGUAGE, &language) &&
(language < RETRO_LANGUAGE_LAST) && (language != RETRO_LANGUAGE_ENGLISH))
core_options_intl.local = option_defs_intl[language];
environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS_INTL, &core_options_intl);
#else
environ_cb(RETRO_ENVIRONMENT_SET_CORE_OPTIONS, &option_defs_us);
#endif
}
else
{
size_t i;
size_t num_options = 0;
struct retro_variable *variables = NULL;
char **values_buf = NULL;
/* Determine number of options */
while (true)
{
if (option_defs_us[num_options].key)
num_options++;
else
break;
}
/* Allocate arrays */
variables = (struct retro_variable *)calloc(num_options + 1, sizeof(struct retro_variable));
values_buf = (char **)calloc(num_options, sizeof(char *));
if (!variables || !values_buf)
goto error;
/* Copy parameters from option_defs_us array */
for (i = 0; i < num_options; i++)
{
const char *key = option_defs_us[i].key;
const char *desc = option_defs_us[i].desc;
const char *default_value = option_defs_us[i].default_value;
struct retro_core_option_value *values = option_defs_us[i].values;
size_t buf_len = 3;
size_t default_index = 0;
values_buf[i] = NULL;
if (desc)
{
size_t num_values = 0;
/* Determine number of values */
while (true)
{
if (values[num_values].value)
{
/* Check if this is the default value */
if (default_value)
if (strcmp(values[num_values].value, default_value) == 0)
default_index = num_values;
buf_len += strlen(values[num_values].value);
num_values++;
}
else
break;
}
/* Build values string */
if (num_values > 0)
{
size_t j;
buf_len += num_values - 1;
buf_len += strlen(desc);
values_buf[i] = (char *)calloc(buf_len, sizeof(char));
if (!values_buf[i])
goto error;
strcpy(values_buf[i], desc);
strcat(values_buf[i], "; ");
/* Default value goes first */
strcat(values_buf[i], values[default_index].value);
/* Add remaining values */
for (j = 0; j < num_values; j++)
{
if (j != default_index)
{
strcat(values_buf[i], "|");
strcat(values_buf[i], values[j].value);
}
}
}
}
variables[i].key = key;
variables[i].value = values_buf[i];
}
/* Set variables */
environ_cb(RETRO_ENVIRONMENT_SET_VARIABLES, variables);
error:
/* Clean up */
if (values_buf)
{
for (i = 0; i < num_options; i++)
{
if (values_buf[i])
{
free(values_buf[i]);
values_buf[i] = NULL;
}
}
free(values_buf);
values_buf = NULL;
}
if (variables)
{
free(variables);
variables = NULL;
}
}
}
#ifdef __cplusplus
}
#endif
#endif

View file

@ -1,242 +0,0 @@
#ifndef LIBRETRO_CORE_OPTIONS_INTL_H__
#define LIBRETRO_CORE_OPTIONS_INTL_H__
#if defined(_MSC_VER) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
/* https://support.microsoft.com/en-us/kb/980263 */
#pragma execution_character_set("utf-8")
#pragma warning(disable:4566)
#endif
#include <libretro.h>
/*
********************************
* VERSION: 1.3
********************************
*
* - 1.3: Move translations to libretro_core_options_intl.h
* - libretro_core_options_intl.h includes BOM and utf-8
* fix for MSVC 2010-2013
* - Added HAVE_NO_LANGEXTRA flag to disable translations
* on platforms/compilers without BOM support
* - 1.2: Use core options v1 interface when
* RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION is >= 1
* (previously required RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION == 1)
* - 1.1: Support generation of core options v0 retro_core_option_value
* arrays containing options with a single value
* - 1.0: First commit
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
********************************
* Core Option Definitions
********************************
*/
/* RETRO_LANGUAGE_JAPANESE */
/* RETRO_LANGUAGE_FRENCH */
/* RETRO_LANGUAGE_SPANISH */
/* RETRO_LANGUAGE_GERMAN */
/* RETRO_LANGUAGE_ITALIAN */
/* RETRO_LANGUAGE_DUTCH */
/* RETRO_LANGUAGE_PORTUGUESE_BRAZIL */
/* RETRO_LANGUAGE_PORTUGUESE_PORTUGAL */
/* RETRO_LANGUAGE_RUSSIAN */
/* RETRO_LANGUAGE_KOREAN */
/* RETRO_LANGUAGE_CHINESE_TRADITIONAL */
/* RETRO_LANGUAGE_CHINESE_SIMPLIFIED */
/* RETRO_LANGUAGE_ESPERANTO */
/* RETRO_LANGUAGE_POLISH */
/* RETRO_LANGUAGE_VIETNAMESE */
/* RETRO_LANGUAGE_ARABIC */
/* RETRO_LANGUAGE_GREEK */
/* RETRO_LANGUAGE_TURKISH */
struct retro_core_option_definition option_defs_tr[] = {
{
"nestopia_blargg_ntsc_filter",
"Blargg NTSC Filtresi",
"Blargg NTSC filtrelerini etkinleştirin.",
{
{ "disabled", "Devre Dışı" },
{ "composite", "Kompozit Video" },
{ "svideo", "S-Video" },
{ "rgb", "RGB SCART" },
{ "monochrome", "Tek renkli" },
{ NULL, NULL },
},
NULL
},
{
"nestopia_palette",
"Palet",
"Hangi renk paletinin kullanılacağını seçin.",
{
{ "cxa2025as", "CXA2025AS" },
{ "consumer", "Consumer" },
{ "canonical", "Standart" },
{ "alternative", "Alternatif" },
{ "rgb", "RGB" },
{ "pal", "PAL" },
{ "composite-direct-fbx", "Doğrudan Kompozit FBx" },
{ "pvm-style-d93-fbx", "PVM-style D93 FBx" },
{ "ntsc-hardware-fbx", "NTSC donanım FBx" },
{ "nes-classic-fbx-fs", "NES Klasik FBx FS" },
{ "raw", "Raw" },
{ "custom", "Özel" },
{ NULL, NULL },
},
NULL
},
{
"nestopia_nospritelimit",
"Sprite Limitini Kaldır",
"Tarama başına 8 sprite donanım sınırını kaldır.",
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_overclock",
"CPU Hızı (Hız aşırtma)",
"Öykünülmüş CPU'ya hız aşırtma uygula.",
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_select_adapter",
"4 Oyuncu Adaptörü",
"Gerekirse manuel olarak bir 4 Oyuncu Adaptörü seçin. Bazı oyunlar bağdaştırıcıyı NstDatabase.xml veritabanıyla doğru bir şekilde tanıyamayabilir, bu seçenek bunu düzeltmeye yardımcı olur.",
{
{ "auto", "Otomatik" },
{ "ntsc", "NTSC" },
{ "famicom", "Famicom" },
{ NULL, NULL },
},
NULL
},
{
"nestopia_fds_auto_insert",
"FDS Otomatik Ekleme",
"Yeniden başlatmada ilk FDS diskini otomatik olarak yerleştirir.",
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_overscan_v",
"ırı Taşmayı Maskele (Dikey)",
"Standart tanımlı bir televizyon ekranının kenarı çevresinde çerçeve tarafından gizlenmiş olabilecek potansiyel olarak rastgele aksaklık video çıkışını maskeleyin (dikey olarak).",
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_overscan_h",
"ırı Taşmayı Maskele (Yatay)",
"Standart tanımlı bir televizyon ekranının kenarı çevresinde çerçeve tarafından gizlenmiş olabilecek rastgele aksaklıklı video çıkışını maskeleyin (yatay olarak).",
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_aspect",
"Tercih Edilen En Boy Oranı",
"Tercih edilen en boy oranını seçin. RetroArch'ın en boy oranı, Video ayarlarında 'Çekirdek Tarafından Sağlanan' olarak ayarlanmalıdır. 'Otomatik', en-boy oranı otomatik belirlemesi için NstDatabase.xml veritabanını kullanır. Eğer mevcut bir veritabanı yoksa, 'Otomatik' için NTSC'ye varsayılan olacaktır.",
{
{ "auto", "Otomatik" },
{ "ntsc", "NTSC" },
{ "pal", "PAL" },
{ "4:3", "4:3" },
{ NULL, NULL },
},
NULL
},
{
"nestopia_genie_distortion",
"Game Genie Ses Bozulma",
"Game Genie hile cihazı yanlışlıkla oyunlarda ses bozulmalarına neden olabilir. Bunu etkinleştirerek, oyun sesine ekleyeceği bozulmayı taklit edebilirsiniz.",
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_favored_system",
"Sistem Bölgesi",
"Sistemin hangi bölgeden olacağını seçin. 'Otomatik' bölgenin otomatik belirlenmesi için NstDatabase.xml veritabanı dosyasını kullanır. Eğer mevcut bir veritabanı yoksa, 'Otomatik' için NTSC'ye varsayılan olacaktır.",
{
{ "auto", "Otomatik" },
{ "ntsc", "NTSC" },
{ "pal", "PAL" },
{ "famicom", "Famicom" },
{ "dendy", "Dendy" },
{ NULL, NULL },
},
NULL
},
{
"nestopia_ram_power_state",
"ılıştaki RAM Durumu",
"",
{
{ "0x00", NULL },
{ "0xFF", NULL },
{ "random", "Rastgele" },
{ NULL, NULL },
},
NULL
},
{
"nestopia_button_shift",
"A/B/X/Y Saat Yönünde Kaydırma",
"A/B/X/Y tuşlarını saat yönünde çevirir.", /* Açıklama daha sonra eklenecek */
{
{ NULL, NULL },
},
NULL
},
{
"nestopia_turbo_pulse",
"Turbo Pulse Speed",
"Turbo B ve Turbo A düğmeleri için turbo hızını ayarlayın.",
{
{ NULL, NULL },
},
NULL
},
{ NULL, NULL, NULL, {{0}}, NULL },
};
#ifdef __cplusplus
}
#endif
#endif

View file

@ -1,5 +0,0 @@
{
global: retro_*;
local: *;
};

File diff suppressed because one or more lines are too long

View file

@ -159,16 +159,6 @@ void gtkui_cb_video_hue(GtkRange *range, gpointer userdata) {
// Audio //
void gtkui_cb_audio_api(GtkComboBox *combobox, gpointer userdata) {
// Change the Audio API
if (nst_playing()) {
nst_pause();
conf.audio_api = gtk_combo_box_get_active(combobox);
nst_play();
}
else { conf.audio_api = gtk_combo_box_get_active(combobox); }
}
void gtkui_cb_audio_samplerate(GtkComboBox *combobox, gpointer userdata) {
// Change the Sample Rate
switch (gtk_combo_box_get_active(combobox)) {

View file

@ -22,7 +22,6 @@ void gtkui_cb_video_saturation(GtkRange *range, gpointer userdata);
void gtkui_cb_video_contrast(GtkRange *range, gpointer userdata);
void gtkui_cb_video_hue(GtkRange *range, gpointer userdata);
void gtkui_cb_audio_api(GtkComboBox *combobox, gpointer userdata);
void gtkui_cb_audio_samplerate(GtkComboBox *combobox, gpointer userdata);
void gtkui_cb_audio_stereo(GtkToggleButton *togglebutton, gpointer userdata);
@ -35,7 +34,6 @@ void gtkui_cb_timing_vsync(GtkToggleButton *togglebutton, gpointer userdata);
void gtkui_cb_timing_limiter(GtkToggleButton *togglebutton, gpointer userdata);
void gtkui_cb_misc_soft_patching(GtkToggleButton *togglebutton, gpointer userdata);
void gtkui_cb_misc_genie_distortion(GtkToggleButton *togglebutton, gpointer userdata);
//void gtkui_cb_misc_disable_gui(GtkToggleButton *togglebutton, gpointer userdata);
void gtkui_cb_misc_disable_cursor(GtkToggleButton *togglebutton, gpointer userdata);
void gtkui_cb_misc_disable_cursor_special(GtkToggleButton *togglebutton, gpointer userdata);
void gtkui_cb_misc_config_pause(GtkToggleButton *togglebutton, gpointer userdata);

View file

@ -433,40 +433,6 @@ GtkWidget *gtkui_config() {
"margin-bottom", MARGIN_TB,
NULL);
// Audio API
GtkWidget *box_audio_api = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
GtkWidget *label_audio_api = gtk_widget_new(
GTK_TYPE_LABEL,
"label", "API:",
"halign", GTK_ALIGN_START,
"margin-bottom", MARGIN_TB,
"margin-left", MARGIN_LR,
NULL);
GtkWidget *combo_audio_api = gtk_widget_new(
GTK_TYPE_COMBO_BOX_TEXT,
"halign", GTK_ALIGN_START,
"margin-bottom", MARGIN_TB,
"margin-left", MARGIN_LR,
NULL);
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_audio_api), "SDL");
#ifdef _LIBAO
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_audio_api), "libao");
#endif
#ifdef _JACK
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_audio_api), "jack");
#endif
gtk_combo_box_set_active(GTK_COMBO_BOX(combo_audio_api), conf.audio_api);
gtk_box_pack_start(GTK_BOX(box_audio_api), label_audio_api, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(box_audio_api), combo_audio_api, FALSE, FALSE, 0);
#if SDL_VERSION_ATLEAST(2,0,4)
gtk_box_pack_start(GTK_BOX(box_audio), box_audio_api, FALSE, FALSE, 0);
#endif
g_signal_connect(G_OBJECT(combo_audio_api), "changed",
G_CALLBACK(gtkui_cb_audio_api), NULL);
// Sample Rate
GtkWidget *box_audio_samplerate = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
GtkWidget *label_audio_samplerate = gtk_widget_new(

View file

@ -28,27 +28,6 @@
#include "config.h"
#include "audio.h"
#ifdef _LIBAO
#include <ao/ao.h>
static ao_device *aodevice;
static ao_sample_format format;
#endif
#ifdef _JACK
#define JACK_CLIENT_NAME "nestopia"
#define JACK_RB_SIZE 6400
#include <jack/jack.h>
#include <jack/ringbuffer.h>
static jack_port_t *jack_output_port1, *jack_output_port2;
static jack_client_t *jack_client;
static jack_ringbuffer_t *jack_rb = NULL;
static bool jack_ready = false;
const size_t jack_sample_size = sizeof(jack_default_audio_sample_t);
#endif
extern Emulator emulator;
static SDL_AudioSpec spec, obtained;
@ -111,192 +90,32 @@ void audio_init_sdl() {
SDL_PauseAudioDevice(dev, 1); // Setting to 0 unpauses
}
#ifdef _LIBAO
void audio_output_ao() {
ao_play(aodevice, (char*)audiobuf, bufsize);
}
void audio_deinit_ao() {
if (aodevice) { ao_close(aodevice); ao_shutdown(); }
}
void audio_init_ao() {
ao_initialize();
int default_driver = ao_default_driver_id();
memset(&format, 0, sizeof(format));
format.bits = 16;
format.channels = channels;
format.rate = conf.audio_sample_rate;
format.byte_format = AO_FMT_NATIVE;
aodevice = ao_open_live(default_driver, &format, NULL);
if (aodevice == NULL) {
fprintf(stderr, "Error opening audio device.\n");
aodevice = ao_open_live(ao_driver_id("null"), &format, NULL);
}
else {
fprintf(stderr, "Audio: libao - %dHz, %d-bit, %d channel(s)\n", format.rate, format.bits, format.channels);
}
}
#endif
#ifdef _JACK
int audio_cb_jack(jack_nframes_t nframes, void *arg) {
jack_default_audio_sample_t *out1, *out2;
int i;
if(!jack_ready)
return 0;
out1 = (jack_default_audio_sample_t*) jack_port_get_buffer(jack_output_port1, nframes);
out2 = (jack_default_audio_sample_t*) jack_port_get_buffer(jack_output_port2, nframes);
// it is safe to not check if we have enough data
// because jack_ringbuffer_read does a noop if you ask for too much
for(i=0; i<nframes; i++) {
jack_ringbuffer_read(jack_rb,(char *) (out1+i),jack_sample_size);
if(channels == 1)
out2[i] = out1[i];
else if(channels == 2)
jack_ringbuffer_read(jack_rb,(char *) (out2+i),jack_sample_size);
}
return 0;
}
void audio_jack_shutdown(void *arg) {
jack_ready = false;
}
void audio_deinit_jack() {
if(jack_client != NULL)
jack_deactivate(jack_client);
if(jack_rb != NULL)
jack_ringbuffer_free(jack_rb);
jack_ready = false;
}
void audio_init_jack() {
const char **ports;
jack_options_t options = JackNullOption;
jack_status_t status;
jack_client = jack_client_open(JACK_CLIENT_NAME,options,&status,NULL);
if(jack_client == NULL) {
fprintf(stderr, "Audio: jack - jack_client_open() failed, status = 0x%2.0x\n", status);
if(status & JackServerFailed)
fprintf(stderr, "Audio: jack - Unable to connect to JACK server\n");
return;
}
// JACK needs sample rate to match server sample rate
conf.audio_sample_rate = (int) jack_get_sample_rate(jack_client);
fprintf(stderr, "Audio: jack - Setting sample rate to %d\n", conf.audio_sample_rate);
jack_set_process_callback(jack_client, audio_cb_jack,NULL);
// set up ringbuffer for callback
jack_rb = jack_ringbuffer_create(JACK_RB_SIZE * channels * jack_sample_size);
memset(jack_rb->buf, 0, jack_rb->size);
jack_set_process_callback(jack_client, audio_cb_jack, NULL);
jack_on_shutdown(jack_client, audio_jack_shutdown, NULL);
jack_output_port1 = jack_port_register(jack_client, "nes out left", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
jack_output_port2 = jack_port_register(jack_client, "nes out right", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
if((jack_output_port1 == NULL)||(jack_output_port2 == NULL)) {
fprintf(stderr, "Audio: jack - No new ports available\n");
return;
}
jack_activate(jack_client);
ports = jack_get_ports(jack_client, NULL, NULL, JackPortIsPhysical | JackPortIsInput);
if(ports == NULL) {
fprintf(stderr, "Audio: jack - No playback ports available\n");
return;
}
jack_connect(jack_client, jack_port_name(jack_output_port1), ports[0]);
jack_connect(jack_client, jack_port_name(jack_output_port2), ports[1]);
jack_free(ports);
jack_ready = true;
}
void audio_output_jack() {
size_t i;
jack_default_audio_sample_t sample;
if(!jack_ready)
return;
if(bufsize > (jack_ringbuffer_write_space(jack_rb) / jack_sample_size)) {
fprintf(stderr, "Audio: jack - ringbuffer full!\n");
bufsize = jack_ringbuffer_write_space(jack_rb) / jack_sample_size;
}
for(i = 0; i < (bufsize/2); i++) {
// convert the audio to 32 bit float to make JACK happy
sample = (float) audiobuf[i];
sample /= (float) 0x8000;
jack_ringbuffer_write(jack_rb, (char *) &sample, jack_sample_size);
}
}
#endif // _JACK
void audio_set_funcs() {
if (conf.audio_api == 0) { // SDL
audio_output = &audio_output_sdl;
audio_deinit = &audio_deinit_sdl;
}
#ifdef _LIBAO
else if (conf.audio_api == 1) { // libao
audio_output = &audio_output_ao;
audio_deinit = &audio_deinit_ao;
}
#endif
#ifdef _JACK
else if (conf.audio_api == 2) { //JACK
audio_output = &audio_output_jack;
audio_deinit = &audio_deinit_jack;
}
#endif
else { // SDL
audio_output = &audio_output_sdl;
audio_deinit = &audio_deinit_sdl;
}
// SDL
audio_output = &audio_output_sdl;
audio_deinit = &audio_deinit_sdl;
}
void audio_init() {
// Initialize audio device
// Set the framerate based on the region. For PAL: (60 / 6) * 5 = 50
framerate = nst_pal() ? (conf.timing_speed / 6) * 5 : conf.timing_speed;
channels = conf.audio_stereo ? 2 : 1;
memset(audiobuf, 0, sizeof(audiobuf));
audio_set_funcs();
if (conf.audio_api == 0) { audio_init_sdl(); }
#ifdef _LIBAO
else if (conf.audio_api == 1) { audio_init_ao(); }
#endif
#ifdef _JACK
else if (conf.audio_api == 2) { audio_init_jack(); }
#endif
else { conf.audio_api = 0; audio_init_sdl(); }
audio_init_sdl();
paused = false;
}
void audio_pause() {
// Pause the SDL audio device
if (conf.audio_api == 0) { // SDL
SDL_PauseAudioDevice(dev, 1);
}
SDL_PauseAudioDevice(dev, 1);
paused = true;
}
void audio_unpause() {
// Unpause the SDL audio device
if (conf.audio_api == 0) { // SDL
SDL_PauseAudioDevice(dev, 0);
}
SDL_PauseAudioDevice(dev, 0);
paused = false;
}