Disabling auto-refresh of game list by default, as it is causing bugs sometimes
[open-ps2-loader.git] / modules / iopcore / cdvdman / mass_common.h
blobb1ff34e9e066921b9f10b735507d2020505f8bee
1 #ifndef _USBHD_COMMON_H
2 #define _USBHD_COMMON_H
4 #ifdef WIN32
5 #define USBHD_INLINE
6 typedef unsigned char u8;
7 #else
8 #define USBHD_INLINE inline
9 #endif
11 struct _mass_dev;
12 typedef struct _mass_dev mass_dev;
14 //---------------------------------------------------------------------------
15 static USBHD_INLINE int getI32(unsigned char* buf)
17 return (buf[0] + (buf[1] <<8) + (buf[2] << 16) + (buf[3] << 24));
20 //---------------------------------------------------------------------------
21 static USBHD_INLINE int getI32_2(unsigned char* buf1, unsigned char* buf2)
23 return (buf1[0] + (buf1[1] <<8) + (buf2[0] << 16) + (buf2[1] << 24));
26 //---------------------------------------------------------------------------
27 static USBHD_INLINE int getI16(unsigned char* buf)
29 return (buf[0] + (buf[1] <<8) );
32 #endif // _USBHD_COMMON_H