X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fcdrom.h;h=216a2133e919eb082698211d25ece05b47f1ac28;hb=22eee2acf7262b3cd721a095a8673800ecb5da5e;hp=543c619dbf0362ef8f722d9beca915c8f2014c04;hpb=22dade5ca95efa7fb3530023dbab77f8516bfed7;p=pcsx_rearmed.git diff --git a/libpcsxcore/cdrom.h b/libpcsxcore/cdrom.h index 543c619d..216a2133 100644 --- a/libpcsxcore/cdrom.h +++ b/libpcsxcore/cdrom.h @@ -41,6 +41,9 @@ extern "C" { #define SUB_FRAMESIZE 96 +#define MIN_VALUE(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; }) +#define MAX_VALUE(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a > _b ? _a : _b; }) + typedef struct { unsigned char OCUP; unsigned char Reg1Mode; @@ -59,7 +62,8 @@ typedef struct { unsigned char Absolute[3]; } subq; unsigned char TrackChanged; - unsigned char pad1[3]; + boolean m_locationChanged; + unsigned char pad1[2]; unsigned int freeze_ver; unsigned char Prev[4]; @@ -86,7 +90,7 @@ typedef struct { int CurTrack; int Mode, File, Channel; int Reset; - int RErr; + int NoErr; int FirstSector; xa_decode_t Xa;