X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=libpcsxcore%2Fcdrom.h;h=5e40bac383b4e3706a11eb4b59c51911f9374e1e;hb=db63e60d12b65001c809055a68587be6469c8566;hp=afa45010c79cc23666c067483a3a59fc2013157a;hpb=068a6133171b026956bbfd91e9bf4666def8823d;p=pcsx_rearmed.git diff --git a/libpcsxcore/cdrom.h b/libpcsxcore/cdrom.h index afa45010..5e40bac3 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]; @@ -83,7 +87,6 @@ typedef struct { unsigned char SetSector[4]; unsigned char Track; boolean Play, Muted; - boolean m_locationChanged; int CurTrack; int Mode, File, Channel; int Reset;