[core] some endian fix try

Conflicts:
	Core/HLE/sceIo.cpp
This commit is contained in:
Ced2911 2013-08-19 13:55:28 +02:00 committed by Unknown W. Brackets
parent 760c6ab0ec
commit 2941ec7227
3 changed files with 44 additions and 44 deletions

View File

@ -28,30 +28,30 @@ void __AtracShutdown();
typedef struct
{
u32 decodePos; // 0
u32 endSample; // 4
u32 loopStart; // 8
u32 loopEnd; // 12
int samplesPerChan; // 16
u32_le decodePos; // 0
u32_le endSample; // 4
u32_le loopStart; // 8
u32_le loopEnd; // 12
s32_le samplesPerChan; // 16
char numFrame; // 20
// 2: all the stream data on the buffer
// 6: looping -> second buffer needed
char state; // 21
char unk22;
char numChan; // 23
u16 sampleSize; // 24
u16 codec; // 26
u32 dataOff; // 28
u32 curOff; // 32
u32 dataEnd; // 36
int loopNum; // 40
u32 streamDataByte; // 44
u32 unk48;
u32 unk52;
u32 buffer; // 56
u32 secondBuffer; // 60
u32 bufferByte; // 64
u32 secondBufferByte; // 68
u16_le sampleSize; // 24
u16_le codec; // 26
u32_le dataOff; // 28
u32_le curOff; // 32
u32_le dataEnd; // 36
s32_le loopNum; // 40
u32_le streamDataByte; // 44
u32_le unk48;
u32_le unk52;
u32_le buffer; // 56
u32_le secondBuffer; // 60
u32_le bufferByte; // 64
u32_le secondBufferByte; // 68
// make sure the size is 128
u8 unk[56];
} SceAtracIdInfo;

View File

@ -19,16 +19,16 @@
typedef struct
{
s32 unk0;
s32 unk4;
s32 err; // 8
s32 edramAddr; // 12
s32 neededMem; // 16
s32 unk20;
u32 inBuf; // 24
s32 unk28;
u32 outBuf; // 32
s32 unk36;
s32_le unk0;
s32_le unk4;
s32_le err; // 8
s32_le edramAddr; // 12
s32_le neededMem; // 16
s32_le unk20;
u32_le inBuf; // 24
s32_le unk28;
u32_le outBuf; // 32
s32_le unk36;
s8 unk40;
s8 unk41;
s8 unk42;
@ -37,21 +37,21 @@ typedef struct
s8 unk45;
s8 unk46;
s8 unk47;
s32 unk48;
s32 unk52;
s32 unk56;
s32 unk60;
s32 unk64;
s32 unk68;
s32 unk72;
s32 unk76;
s32 unk80;
s32 unk84;
s32 unk88;
s32 unk92;
s32 unk96;
s32 unk100;
u32 allocMem; // 104
s32_le unk48;
s32_le unk52;
s32_le unk56;
s32_le unk60;
s32_le unk64;
s32_le unk68;
s32_le unk72;
s32_le unk76;
s32_le unk80;
s32_le unk84;
s32_le unk88;
s32_le unk92;
s32_le unk96;
s32_le unk100;
u32_le allocMem; // 104
// make sure the size is 128
u8 unk[20];
} SceAudiocodecCodec;

View File

@ -2189,7 +2189,7 @@ u32 sceIoIoctlAsync(u32 id, u32 cmd, u32 indataPtr, u32 inlen, u32 outdataPtr, u
u32 sceIoGetFdList(u32 outAddr, int outSize, u32 fdNumAddr) {
WARN_LOG(SCEIO, "sceIoGetFdList(%08x, %i, %08x)", outAddr, outSize, fdNumAddr);
auto out = PSPPointer<SceUID>::Create(outAddr);
auto out = PSPPointer<SceUID_le>::Create(outAddr);
int count = 0;
// Always have the first three.