Hello community,
here is the log from the commit of package libretro-beetle-pcfx for
openSUSE:Factory checked in at 2020-06-07 21:36:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libretro-beetle-pcfx (Old)
and /work/SRC/openSUSE:Factory/.libretro-beetle-pcfx.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libretro-beetle-pcfx"
Sun Jun 7 21:36:12 2020 rev:2 rq:812084 version:0~git20200520
Changes:
--------
---
/work/SRC/openSUSE:Factory/libretro-beetle-pcfx/libretro-beetle-pcfx.changes
2020-02-11 22:22:38.711476843 +0100
+++
/work/SRC/openSUSE:Factory/.libretro-beetle-pcfx.new.3606/libretro-beetle-pcfx.changes
2020-06-07 21:36:40.205136607 +0200
@@ -1,0 +2,13 @@
+Sat May 30 16:12:29 UTC 2020 - [email protected]
+
+- Update to version 0~git20200520:
+ * Update
+ * Silence most warnings
+ * (MSVC 2017) Only compile in HAVE_CDROM part for desktop
+ * Potential buildfix
+ * Makefile: Add libnx target
+ * Makefile: Add wiiu target
+ * Potential buildfixes for wiiu
+ * (MSVC 2017) Buildfix
+
+-------------------------------------------------------------------
Old:
----
libretro-beetle-pcfx-0~git20190911.tar.xz
New:
----
libretro-beetle-pcfx-0~git20200520.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libretro-beetle-pcfx.spec ++++++
--- /var/tmp/diff_new_pack.nx0Ooq/_old 2020-06-07 21:36:41.501140715 +0200
+++ /var/tmp/diff_new_pack.nx0Ooq/_new 2020-06-07 21:36:41.505140728 +0200
@@ -1,7 +1,7 @@
#
# spec file for package libretro-beetle-pcfx
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,10 @@
Name: libretro-beetle-pcfx
-Version: 0~git20190911
+Version: 0~git20200520
Release: 0
Summary: Mednafen PCFX libretro core for PC-FX emulation
-License: GPL-2.0
+License: GPL-2.0-only
Group: System/Emulators/Other
URL: http://www.retroarch.com
Source: %{name}-%{version}.tar.xz
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.nx0Ooq/_old 2020-06-07 21:36:41.545140854 +0200
+++ /var/tmp/diff_new_pack.nx0Ooq/_new 2020-06-07 21:36:41.545140854 +0200
@@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/libretro/beetle-pcfx-libretro.git</param>
- <param
name="changesrevision">7626fe997f49ef47ab354d57f5b90901bcfffd91</param></service></servicedata>
\ No newline at end of file
+ <param
name="changesrevision">f0d284854a1973196c36590505f70c3404cc37b4</param></service></servicedata>
\ No newline at end of file
++++++ libretro-beetle-pcfx-0~git20190911.tar.xz ->
libretro-beetle-pcfx-0~git20200520.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libretro-beetle-pcfx-0~git20190911/Makefile
new/libretro-beetle-pcfx-0~git20200520/Makefile
--- old/libretro-beetle-pcfx-0~git20190911/Makefile 2019-09-11
04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/Makefile 2020-05-20
04:25:02.000000000 +0200
@@ -190,6 +190,7 @@
FLAGS += -DVITA
STATIC_LINKING = 1
+# Xbox 360
else ifeq ($(platform), xenon)
TARGET := $(TARGET_NAME)_libretro_xenon360.a
CC = xenon-gcc$(EXE_EXT)
@@ -198,6 +199,20 @@
ENDIANNESS_DEFINES += -D__LIBXENON__ -m32 -D__ppc__ -DMSB_FIRST
LIBS := $(PTHREAD_FLAGS)
STATIC_LINKING = 1
+
+# Nintendo Switch (libnx)
+else ifeq ($(platform), libnx)
+include $(DEVKITPRO)/libnx/switch_rules
+ TARGET := $(TARGET_NAME)_libretro_$(platform).a
+ 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 += $(INCLUDE) -D__SWITCH__ -DHAVE_LIBNX
+ CXXFLAGS := $(ASFLAGS) $(CFLAGS) -fexceptions -fno-rtti -std=gnu++11
+ CFLAGS += -std=gnu11
+ STATIC_LINKING = 1
+
+# Nintendo Gamecube
else ifeq ($(platform), ngc)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
@@ -208,6 +223,8 @@
EXTRA_INCLUDES := -I$(DEVKITPRO)/libogc/include
STATIC_LINKING = 1
+
+# wii
else ifeq ($(platform), wii)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
@@ -218,6 +235,19 @@
EXTRA_INCLUDES := -I$(DEVKITPRO)/libogc/include
STATIC_LINKING = 1
+
+# 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)
+ ENDIANNESS_DEFINES += -DGEKKO -DWIIU -DHW_RVL -mwup -mcpu=750 -meabi
-mhard-float -DMSB_FIRST
+ FLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
+
+ EXTRA_INCLUDES := -I$(DEVKITPRO)/libogc/include
+ STATIC_LINKING = 1
+
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
@@ -253,10 +283,10 @@
CFLAGS += -DNOMINMAX
CXXFLAGS += -DNOMINMAX
WINDOWS_VERSION = 1
- HAVE_CDROM = 1
PlatformSuffix = $(subst windows_msvc2017_,,$(platform))
ifneq (,$(findstring desktop,$(PlatformSuffix)))
+ HAVE_CDROM = 1
WinPartition = desktop
MSVC2017CompileFlags =
-DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -FS
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
@@ -280,7 +310,7 @@
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)%")
+ 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)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libretro-beetle-pcfx-0~git20190911/libretro.cpp
new/libretro-beetle-pcfx-0~git20200520/libretro.cpp
--- old/libretro-beetle-pcfx-0~git20190911/libretro.cpp 2019-09-11
04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/libretro.cpp 2020-05-20
04:25:02.000000000 +0200
@@ -1466,7 +1466,7 @@
return false;
MDFN_PixelFormat pix_fmt(MDFN_COLORSPACE_RGB, 16, 8, 0, 24);
- memset(&last_pixel_format, 0, sizeof(MDFN_PixelFormat));
+ last_pixel_format = MDFN_PixelFormat();
surf = new MDFN_Surface(NULL, FB_WIDTH, FB_HEIGHT, FB_WIDTH, pix_fmt);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/cdrom/CDAccess_CHD.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/cdrom/CDAccess_CHD.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/cdrom/CDAccess_CHD.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/cdrom/CDAccess_CHD.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -429,11 +429,6 @@
}
}
- if (!track_found) {
- //printf("Could not find track for sector %d\n!", lba);
- throw(MDFN_Error(0, _("Could not find track for sector %u!"), lba));
- }
-
if (lba < Tracks[track].LBA)
lba_relative = Tracks[track].LBA - 1 - lba;
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/cdrom/CDAccess_Image.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/cdrom/CDAccess_Image.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/cdrom/CDAccess_Image.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/cdrom/CDAccess_Image.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -859,7 +859,9 @@
NumTracks = 1 + LastTrack - FirstTrack;
int32_t RunningLBA = 0;
+#if 0
int32_t LastIndex = 0;
+#endif
long FileOffset = 0;
RunningLBA -= 150;
@@ -911,7 +913,9 @@
{
if(Tracks[x].FirstFileInstance)
{
+#if 0
LastIndex = 0;
+#endif
FileOffset = 0;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/mempatcher.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/mempatcher.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/mempatcher.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/mempatcher.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -280,14 +280,16 @@
//printf("TR: %s\n", string);
while(sscanf(string, "%u %c %63s %63s %63s", &bytelen, &endian, address,
operation, value) == 5 && passed)
{
- uint32 v_address;
uint64 v_value;
uint64 value_at_address;
+#if 0
+ uint32 v_address;
if(address[0] == '0' && address[1] == 'x')
v_address = strtoul(address + 2, NULL, 16);
else
v_address = strtoul(address, NULL, 10);
+#endif
if(value[0] == '0' && value[1] == 'x')
v_value = strtoull(value + 2, NULL, 16);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/pcfx/fxscsi.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/pcfx/fxscsi.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/pcfx/fxscsi.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/pcfx/fxscsi.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -30,5 +30,5 @@
void FXSCSI_CtrlWrite(uint32 A, uint8 V)
{
- printf("FXSCSI Write: %08x %02x\n", A, V);
+ //printf("FXSCSI Write: %08x %02x\n", A, V);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/pcfx/rainbow.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/pcfx/rainbow.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/pcfx/rainbow.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/pcfx/rainbow.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -487,7 +487,7 @@
static void decode(int32 *dct, const uint32 *QuantTable, const int32 dc, const
HuffmanQuickLUT *table)
{
int32 coeff;
- int zeroes;
+ int32 zeroes;
int count;
int index;
@@ -722,7 +722,7 @@
for(int column = 0; column < 16; column++)
{
uint32 *dest_base_column = &dest_base[column * 16];
- int zeroes = 0;
+ int32 zeroes = 0;
dc_y += get_dc_y_coeff(&zeroes);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/sound/OwlResampler.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/sound/OwlResampler.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/sound/OwlResampler.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/sound/OwlResampler.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -197,7 +197,7 @@
-void RavenBuffer::Process(unsigned count, bool integrate, unsigned lp_shift)
+void RavenBuffer::Process(unsigned count, bool integrate, uint32 lp_shift)
{
if(integrate)
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/state.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/state.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/state.cpp 2019-09-11
04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/state.cpp 2020-05-20
04:25:02.000000000 +0200
@@ -210,7 +210,7 @@
uint8_t sname_tmp[32];
memset(sname_tmp, 0, sizeof(sname_tmp));
- strncpy((char *)sname_tmp, sname, 32);
+ memcpy((char *)sname_tmp, sname, 32);
if(strlen(sname) > 32)
printf("Warning: section name is too long: %s\n", sname);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libretro-beetle-pcfx-0~git20190911/mednafen/video/surface.cpp
new/libretro-beetle-pcfx-0~git20200520/mednafen/video/surface.cpp
--- old/libretro-beetle-pcfx-0~git20190911/mednafen/video/surface.cpp
2019-09-11 04:56:56.000000000 +0200
+++ new/libretro-beetle-pcfx-0~git20200520/mednafen/video/surface.cpp
2020-05-20 04:25:02.000000000 +0200
@@ -46,13 +46,13 @@
MDFN_Surface::MDFN_Surface()
{
- memset(&format, 0, sizeof(format));
+ format = MDFN_PixelFormat();
- pixels = NULL;
- pixels16 = NULL;
+ pixels = NULL;
+ pixels16 = NULL;
pitchinpix = 0;
- w = 0;
- h = 0;
+ w = 0;
+ h = 0;
}
MDFN_Surface::MDFN_Surface(void *const p_pixels, const uint32 p_width, const
uint32 p_height, const uint32 p_pitchinpix, const MDFN_PixelFormat &nf)