Skip to content

Commit

Permalink
Update Mednafen to 0.9.48
Browse files Browse the repository at this point in the history
  • Loading branch information
clobber committed Sep 19, 2017
1 parent b687ea3 commit 621a460
Show file tree
Hide file tree
Showing 53 changed files with 4,165 additions and 4,205 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.9.47</string>
<string>0.9.48</string>
<key>NSPrincipalClass</key>
<string>OEGameCoreController</string>
<key>OEGameCoreClass</key>
Expand Down
8 changes: 4 additions & 4 deletions Mednafen.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4645,9 +4645,9 @@
OTHER_CFLAGS = (
"-fwrapv",
"-DHAVE_MKDIR",
"-DMEDNAFEN_VERSION=\\\"0.9.47\\\"",
"-DMEDNAFEN_VERSION=\\\"0.9.48\\\"",
"-DPACKAGE=\\\"mednafen\\\"",
"-DMEDNAFEN_VERSION_NUMERIC=0x00094700",
"-DMEDNAFEN_VERSION_NUMERIC=0x00094800",
"-DPSS_STYLE=1",
"-DMPC_FIXED_POINT",
"-DARCH_X86",
Expand Down Expand Up @@ -4708,9 +4708,9 @@
OTHER_CFLAGS = (
"-fwrapv",
"-DHAVE_MKDIR",
"-DMEDNAFEN_VERSION=\\\"0.9.47\\\"",
"-DMEDNAFEN_VERSION=\\\"0.9.48\\\"",
"-DPACKAGE=\\\"mednafen\\\"",
"-DMEDNAFEN_VERSION_NUMERIC=0x00094700",
"-DMEDNAFEN_VERSION_NUMERIC=0x00094800",
"-DPSS_STYLE=1",
"-DMPC_FIXED_POINT",
"-DARCH_X86",
Expand Down
1 change: 0 additions & 1 deletion include/trio/CHANGES

This file was deleted.

1 change: 1 addition & 0 deletions include/trio_external/trio.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <trio.h>
1 change: 1 addition & 0 deletions include/trio_external/triodef.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <triodef.h>
1 change: 1 addition & 0 deletions include/trio_external/trionan.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <trionan.h>
1 change: 1 addition & 0 deletions include/trio_external/triop.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <triop.h>
1 change: 1 addition & 0 deletions include/trio_external/triostr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <triostr.h>
32 changes: 14 additions & 18 deletions mednafen/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
SUBDIRS = trio
AUTOMAKE_OPTIONS = subdir-objects
DEFS = @DEFS@ @SNDFILE_CFLAGS@
DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_builddir)/intl

bin_PROGRAMS = mednafen

mednafen_SOURCES = debug.cpp error.cpp mempatcher.cpp settings.cpp endian.cpp Time.cpp mednafen.cpp git.cpp file.cpp general.cpp memory.cpp netplay.cpp state.cpp state_rewind.cpp movie.cpp player.cpp PSFLoader.cpp SSFLoader.cpp SNSFLoader.cpp SPCReader.cpp tests.cpp qtrecord.cpp Stream.cpp MemoryStream.cpp FileStream.cpp IPSPatcher.cpp
mednafen_LDADD = trio/libtrio.a
mednafen_DEPENDENCIES = trio/libtrio.a
SUBDIRS =
noinst_LIBRARIES =
mednafen_LDADD =
mednafen_DEPENDENCIES =
mednafen_SOURCES = debug.cpp error.cpp mempatcher.cpp settings.cpp endian.cpp Time.cpp mednafen.cpp git.cpp file.cpp general.cpp memory.cpp netplay.cpp state.cpp state_rewind.cpp movie.cpp player.cpp PSFLoader.cpp SSFLoader.cpp SNSFLoader.cpp SPCReader.cpp tests.cpp qtrecord.cpp Stream.cpp MemoryStream.cpp FileStream.cpp IPSPatcher.cpp

if HAVE_SDL
SUBDIRS += drivers
Expand Down Expand Up @@ -121,9 +121,7 @@ endif


if WANT_DEBUGGER
SUBDIRS += desa68
mednafen_LDADD += desa68/libdesa68.a
mednafen_DEPENDENCIES += desa68/libdesa68.a
include desa68/Makefile.am.inc
endif

include hw_cpu/Makefile.am.inc
Expand All @@ -133,11 +131,7 @@ include hw_video/Makefile.am.inc
include cdrom/Makefile.am.inc
include sound/Makefile.am.inc
include net/Makefile.am.inc

SUBDIRS += quicklz
mednafen_LDADD += quicklz/libmdfnquicklz.a
mednafen_DEPENDENCIES += quicklz/libmdfnquicklz.a

include quicklz/Makefile.am.inc
include compress/Makefile.am.inc
include hash/Makefile.am.inc
include string/Makefile.am.inc
Expand All @@ -149,17 +143,19 @@ include cheat_formats/Makefile.am.inc
if HAVE_EXTERNAL_TREMOR
mednafen_LDADD += @TREMOR_LIBS@
else
SUBDIRS += tremor
mednafen_LDADD += tremor/libvorbisidec.a
mednafen_DEPENDENCIES += tremor/libvorbisidec.a
include tremor/Makefile.am.inc
endif

if HAVE_EXTERNAL_MPCDEC
mednafen_LDADD += @MPCDEC_LIBS@
else
SUBDIRS += mpcdec
mednafen_LDADD += mpcdec/libmpcdec.a
mednafen_DEPENDENCIES += mpcdec/libmpcdec.a
include mpcdec/Makefile.am.inc
endif

if HAVE_EXTERNAL_TRIO
mednafen_LDADD += @TRIO_LIBS@
else
include trio/Makefile.am.inc
endif

mednafen_LDADD += @SNDFILE_LIBS@ @ZLIB_LIBS@ @LIBINTL@ @LIBICONV@
Expand Down
728 changes: 694 additions & 34 deletions mednafen/Makefile.in

Large diffs are not rendered by default.

24 changes: 9 additions & 15 deletions mednafen/cdrom/CDAFReader_MPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class CDAFReader_MPC final : public CDAFReader
Stream *fw;
};


/// Reads size bytes of data into buffer at ptr.
static mpc_int32_t impc_read(mpc_reader *p_reader, void *ptr, mpc_int32_t size)
{
Stream *fw = (Stream*)(p_reader->data);
Expand All @@ -64,27 +62,25 @@ static mpc_int32_t impc_read(mpc_reader *p_reader, void *ptr, mpc_int32_t size)
}
catch(...)
{
return(MPC_STATUS_FAIL);
return MPC_STATUS_FAIL;
}
}

/// Seeks to byte position offset.
static mpc_bool_t impc_seek(mpc_reader *p_reader, mpc_int32_t offset)
{
Stream *fw = (Stream*)(p_reader->data);

try
{
fw->seek(offset, SEEK_SET);
return(MPC_TRUE);
return MPC_TRUE;
}
catch(...)
{
return(MPC_FALSE);
return MPC_FALSE;
}
}

/// Returns the current byte offset in the stream.
static mpc_int32_t impc_tell(mpc_reader *p_reader)
{
Stream *fw = (Stream*)(p_reader->data);
Expand All @@ -95,11 +91,10 @@ static mpc_int32_t impc_tell(mpc_reader *p_reader)
}
catch(...)
{
return(MPC_STATUS_FAIL);
return MPC_STATUS_FAIL;
}
}

/// Returns the total length of the source stream, in bytes.
static mpc_int32_t impc_get_size(mpc_reader *p_reader)
{
Stream *fw = (Stream*)(p_reader->data);
Expand All @@ -110,14 +105,13 @@ static mpc_int32_t impc_get_size(mpc_reader *p_reader)
}
catch(...)
{
return(MPC_STATUS_FAIL);
return MPC_STATUS_FAIL;
}
}

/// True if the stream is a seekable stream.
static mpc_bool_t impc_canseek(mpc_reader *p_reader)
{
return(MPC_TRUE);
return MPC_TRUE;
}

CDAFReader_MPC::CDAFReader_MPC(Stream *fp) : fw(fp)
Expand Down Expand Up @@ -225,14 +219,14 @@ bool CDAFReader_MPC::Seek_(uint64 frame_offset)
MPCBufferIn = 0;

if(mpc_demux_seek_sample(demux, frame_offset) < 0)
return(false);
return false;

return(true);
return true;
}

uint64 CDAFReader_MPC::FrameCount(void)
{
return(mpc_streaminfo_get_length_samples(&si));
return mpc_streaminfo_get_length_samples(&si);
}


Expand Down
13 changes: 0 additions & 13 deletions mednafen/desa68/Makefile.am

This file was deleted.

8 changes: 8 additions & 0 deletions mednafen/desa68/Makefile.am.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
noinst_LIBRARIES += libdesa68.a
libdesa68_a_CFLAGS = @AM_CFLAGS@ -Wno-multichar

libdesa68_a_SOURCES = desa68/desa68.c

mednafen_LDADD += libdesa68.a
mednafen_DEPENDENCIES += libdesa68.a

Loading

0 comments on commit 621a460

Please sign in to comment.