This commit is contained in:
twinaphex 2017-08-08 18:51:01 +02:00
parent e979eece1c
commit 3c758609b5
2 changed files with 1 additions and 4 deletions

View File

@ -10,7 +10,6 @@
#include "bitstream.h"
#include <stdlib.h>
#include <retro_inline.h>
//**************************************************************************
// INLINE FUNCTIONS

View File

@ -19,8 +19,6 @@
#include <assert.h>
#include <string.h>
#include <retro_inline.h>
#include "cdrom.h"
/***************************************************************************
@ -309,7 +307,7 @@ static const uint16_t qoffsets[ECC_Q_NUM_BYTES][ECC_Q_COMP] =
// particular to a mode
//-------------------------------------------------
static INLINE uint8_t ecc_source_byte(const uint8_t *sector, uint32_t offset)
static uint8_t ecc_source_byte(const uint8_t *sector, uint32_t offset)
{
// in mode 2 always treat these as 0 bytes
return (sector[MODE_OFFSET] == 2 && offset < 4) ? 0x00 : sector[SYNC_OFFSET + SYNC_NUM_BYTES + offset];