mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Merge pull request #5450 from bkoropoff/windows-chd
CHD support on Windows
This commit is contained in:
commit
8b666ff73d
@ -1312,6 +1312,9 @@ ifeq ($(HAVE_FLAC),1)
|
||||
CFLAGS += -I$(DEPS_DIR)/libFLAC/include
|
||||
DEFINES += -DHAVE_FLAC -DHAVE_STDINT_H -DHAVE_LROUND -DFLAC__HAS_OGG=0 \
|
||||
-DPACKAGE_VERSION="\"retroarch\""
|
||||
ifneq ($(findstring Win32,$(OS)),)
|
||||
DEFINES += -DHAVE_FSEEKO
|
||||
endif
|
||||
FLACOBJ = $(DEPS_DIR)/libFLAC/bitmath.o \
|
||||
$(DEPS_DIR)/libFLAC/bitreader.o \
|
||||
$(DEPS_DIR)/libFLAC/cpu.o \
|
||||
|
@ -928,7 +928,7 @@ static const codec_interface codec_interfaces[] =
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE UINT64 get_bigendian_uint64(const UINT8 *base)
|
||||
static INLINE UINT64 get_bigendian_uint64(const UINT8 *base)
|
||||
{
|
||||
return ((UINT64)base[0] << 56) | ((UINT64)base[1] << 48) | ((UINT64)base[2] << 40) | ((UINT64)base[3] << 32) |
|
||||
((UINT64)base[4] << 24) | ((UINT64)base[5] << 16) | ((UINT64)base[6] << 8) | (UINT64)base[7];
|
||||
@ -940,7 +940,7 @@ INLINE UINT64 get_bigendian_uint64(const UINT8 *base)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void put_bigendian_uint64(UINT8 *base, UINT64 value)
|
||||
static INLINE void put_bigendian_uint64(UINT8 *base, UINT64 value)
|
||||
{
|
||||
base[0] = value >> 56;
|
||||
base[1] = value >> 48;
|
||||
@ -957,7 +957,7 @@ INLINE void put_bigendian_uint64(UINT8 *base, UINT64 value)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE UINT64 get_bigendian_uint48(const UINT8 *base)
|
||||
static INLINE UINT64 get_bigendian_uint48(const UINT8 *base)
|
||||
{
|
||||
return ((UINT64)base[0] << 40) | ((UINT64)base[1] << 32) |
|
||||
((UINT64)base[2] << 24) | ((UINT64)base[3] << 16) | ((UINT64)base[4] << 8) | (UINT64)base[5];
|
||||
@ -968,7 +968,7 @@ INLINE UINT64 get_bigendian_uint48(const UINT8 *base)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void put_bigendian_uint48(UINT8 *base, UINT64 value)
|
||||
static INLINE void put_bigendian_uint48(UINT8 *base, UINT64 value)
|
||||
{
|
||||
value &= 0xffffffffffff;
|
||||
base[0] = value >> 40;
|
||||
@ -983,7 +983,7 @@ INLINE void put_bigendian_uint48(UINT8 *base, UINT64 value)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE UINT32 get_bigendian_uint32(const UINT8 *base)
|
||||
static INLINE UINT32 get_bigendian_uint32(const UINT8 *base)
|
||||
{
|
||||
return (base[0] << 24) | (base[1] << 16) | (base[2] << 8) | base[3];
|
||||
}
|
||||
@ -994,7 +994,7 @@ INLINE UINT32 get_bigendian_uint32(const UINT8 *base)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void put_bigendian_uint24(UINT8 *base, UINT32 value)
|
||||
static INLINE void put_bigendian_uint24(UINT8 *base, UINT32 value)
|
||||
{
|
||||
value &= 0xffffff;
|
||||
base[0] = value >> 16;
|
||||
@ -1008,7 +1008,7 @@ INLINE void put_bigendian_uint24(UINT8 *base, UINT32 value)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value)
|
||||
static INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value)
|
||||
{
|
||||
value &= 0xffffff;
|
||||
base[0] = value >> 16;
|
||||
@ -1021,7 +1021,7 @@ INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE UINT32 get_bigendian_uint24(const UINT8 *base)
|
||||
static INLINE UINT32 get_bigendian_uint24(const UINT8 *base)
|
||||
{
|
||||
return (base[0] << 16) | (base[1] << 8) | base[2];
|
||||
}
|
||||
@ -1031,7 +1031,7 @@ INLINE UINT32 get_bigendian_uint24(const UINT8 *base)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE UINT16 get_bigendian_uint16(const UINT8 *base)
|
||||
static INLINE UINT16 get_bigendian_uint16(const UINT8 *base)
|
||||
{
|
||||
return (base[0] << 8) | base[1];
|
||||
}
|
||||
@ -1042,7 +1042,7 @@ INLINE UINT16 get_bigendian_uint16(const UINT8 *base)
|
||||
the data stream in bigendian order
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void put_bigendian_uint16(UINT8 *base, UINT16 value)
|
||||
static INLINE void put_bigendian_uint16(UINT8 *base, UINT16 value)
|
||||
{
|
||||
base[0] = value >> 8;
|
||||
base[1] = value;
|
||||
@ -1054,7 +1054,7 @@ INLINE void put_bigendian_uint16(UINT8 *base, UINT16 value)
|
||||
entry from the datastream
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void map_extract(const UINT8 *base, map_entry *entry)
|
||||
static INLINE void map_extract(const UINT8 *base, map_entry *entry)
|
||||
{
|
||||
entry->offset = get_bigendian_uint64(&base[0]);
|
||||
entry->crc = get_bigendian_uint32(&base[8]);
|
||||
@ -1068,7 +1068,7 @@ INLINE void map_extract(const UINT8 *base, map_entry *entry)
|
||||
entry to the datastream
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void map_assemble(UINT8 *base, map_entry *entry)
|
||||
static INLINE void map_assemble(UINT8 *base, map_entry *entry)
|
||||
{
|
||||
put_bigendian_uint64(&base[0], entry->offset);
|
||||
put_bigendian_uint32(&base[8], entry->crc);
|
||||
@ -1080,7 +1080,7 @@ INLINE void map_assemble(UINT8 *base, map_entry *entry)
|
||||
/*-------------------------------------------------
|
||||
map_size_v5 - calculate CHDv5 map size
|
||||
-------------------------------------------------*/
|
||||
INLINE int map_size_v5(chd_header* header)
|
||||
static INLINE int map_size_v5(chd_header* header)
|
||||
{
|
||||
return header->hunkcount * header->mapentrybytes;
|
||||
}
|
||||
@ -1312,7 +1312,7 @@ static chd_error decompress_v5_map(chd_file* chd, chd_header* header)
|
||||
entry in old format from the datastream
|
||||
-------------------------------------------------*/
|
||||
|
||||
INLINE void map_extract_old(const UINT8 *base, map_entry *entry, UINT32 hunkbytes)
|
||||
static INLINE void map_extract_old(const UINT8 *base, map_entry *entry, UINT32 hunkbytes)
|
||||
{
|
||||
entry->offset = get_bigendian_uint64(&base[0]);
|
||||
entry->crc = 0;
|
||||
|
@ -82,7 +82,7 @@ HAVE_SSE=no # x86 SSE optimizations (SSE, SSE2)
|
||||
HAVE_FLOATHARD=no # Force hard float ABI (for ARM)
|
||||
HAVE_FLOATSOFTFP=no # Force soft float ABI (for ARM)
|
||||
HAVE_7ZIP=yes # Compile in 7z support
|
||||
HAVE_FLAC=no # Compile in flac support
|
||||
HAVE_FLAC=yes # Compile in flac support
|
||||
HAVE_UPDATE_ASSETS=yes # Disable downloading assets with online updater
|
||||
HAVE_PRESERVE_DYLIB=no # Enable dlclose() for Valgrind support
|
||||
HAVE_PARPORT=auto # Parallel port joypad support
|
||||
|
Loading…
x
Reference in New Issue
Block a user