1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

Some functions added

This commit is contained in:
Nekotekina 2015-01-29 20:42:51 +03:00
parent 62c8f2ac34
commit 6c40dc0631
6 changed files with 474 additions and 43 deletions

View File

@ -4,6 +4,34 @@
extern psv_log_base sceAppMgr;
struct SceAppMgrEvent
{
s32 event;
s32 appId;
char param[56];
};
s32 sceAppMgrReceiveEventNum(vm::psv::ptr<s32> eventNum)
{
throw __FUNCTION__;
}
s32 sceAppMgrReceiveEvent(vm::psv::ptr<SceAppMgrEvent> appEvent)
{
throw __FUNCTION__;
}
s32 sceAppMgrAcquireBgmPort()
{
throw __FUNCTION__;
}
s32 sceAppMgrReleaseBgmPort()
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceAppMgr, #name, name)
psv_log_base sceAppMgr("SceAppMgr", []()
@ -12,9 +40,9 @@ psv_log_base sceAppMgr("SceAppMgr", []()
sceAppMgr.on_unload = nullptr;
sceAppMgr.on_stop = nullptr;
//REG_FUNC(0x47E5DD7D, sceAppMgrReceiveEventNum);
//REG_FUNC(0xCFAD5A3A, sceAppMgrReceiveEvent);
//REG_FUNC(0xF3D65520, sceAppMgrAcquireBgmPort);
//REG_FUNC(0x96CBE713, sceAppMgrReleaseBgmPort);
REG_FUNC(0x47E5DD7D, sceAppMgrReceiveEventNum);
REG_FUNC(0xCFAD5A3A, sceAppMgrReceiveEvent);
REG_FUNC(0xF3D65520, sceAppMgrAcquireBgmPort);
REG_FUNC(0x96CBE713, sceAppMgrReleaseBgmPort);
//REG_FUNC(0x49255C91, sceAppMgrGetRunStatus);
});

View File

@ -4,6 +4,138 @@
extern psv_log_base sceAppUtil;
struct SceAppUtilInitParam
{
u32 workBufSize;
char reserved[60];
};
struct SceAppUtilBootParam
{
u32 attr;
u32 appVersion;
char reserved[32];
};
struct SceAppUtilSaveDataMountPoint
{
char data[16];
};
struct SceAppUtilSaveDataSlotParam
{
u32 status;
char title[64];
char subTitle[128];
char detail[512];
char iconPath[64];
s32 userParam;
u32 sizeKB;
SceDateTime modifiedTime;
char reserved[48];
};
struct SceAppUtilSaveDataSlotEmptyParam
{
vm::psv::ptr<char> title;
vm::psv::ptr<char> iconPath;
vm::psv::ptr<void> iconBuf;
u32 iconBufSize;
char reserved[32];
};
struct SceAppUtilSaveDataSlot
{
u32 id;
u32 status;
s32 userParam;
vm::psv::ptr<SceAppUtilSaveDataSlotEmptyParam> emptyParam;
};
struct SceAppUtilSaveDataFile
{
vm::psv::ptr<const char> filePath;
vm::psv::ptr<void> buf;
u32 bufSize;
s64 offset;
u32 mode;
u32 progDelta;
char reserved[32];
};
struct SceAppUtilSaveDataFileSlot
{
u32 id;
vm::psv::ptr<SceAppUtilSaveDataSlotParam> slotParam;
char reserved[32];
};
s32 sceAppUtilInit(vm::psv::ptr<const SceAppUtilInitParam> initParam, vm::psv::ptr<SceAppUtilBootParam> bootParam)
{
throw __FUNCTION__;
}
s32 sceAppUtilShutdown()
{
throw __FUNCTION__;
}
s32 sceAppUtilSaveDataSlotCreate(u32 slotId, vm::psv::ptr<const SceAppUtilSaveDataSlotParam> param, vm::psv::ptr<const SceAppUtilSaveDataMountPoint> mountPoint)
{
throw __FUNCTION__;
}
s32 sceAppUtilSaveDataSlotDelete(u32 slotId, vm::psv::ptr<const SceAppUtilSaveDataMountPoint> mountPoint)
{
throw __FUNCTION__;
}
s32 sceAppUtilSaveDataSlotSetParam(u32 slotId, vm::psv::ptr<const SceAppUtilSaveDataSlotParam> param, vm::psv::ptr<const SceAppUtilSaveDataMountPoint> mountPoint)
{
throw __FUNCTION__;
}
s32 sceAppUtilSaveDataSlotGetParam(u32 slotId, vm::psv::ptr<SceAppUtilSaveDataSlotParam> param, vm::psv::ptr<const SceAppUtilSaveDataMountPoint> mountPoint)
{
throw __FUNCTION__;
}
s32 sceAppUtilSaveDataFileSave(vm::psv::ptr<const SceAppUtilSaveDataFileSlot> slot, vm::psv::ptr<const SceAppUtilSaveDataFile> files, u32 fileNum, vm::psv::ptr<const SceAppUtilSaveDataMountPoint> mountPoint, vm::psv::ptr<u32> requiredSizeKB)
{
throw __FUNCTION__;
}
s32 sceAppUtilPhotoMount()
{
throw __FUNCTION__;
}
s32 sceAppUtilPhotoUmount()
{
throw __FUNCTION__;
}
s32 sceAppUtilSystemParamGetInt(u32 paramId, vm::psv::ptr<s32> value)
{
throw __FUNCTION__;
}
s32 sceAppUtilSystemParamGetString(u32 paramId, vm::psv::ptr<char> buf, u32 bufSize)
{
throw __FUNCTION__;
}
s32 sceAppUtilSaveSafeMemory(vm::psv::ptr<const void> buf, u32 bufSize, s64 offset)
{
throw __FUNCTION__;
}
s32 sceAppUtilLoadSafeMemory(vm::psv::ptr<void> buf, u32 bufSize, s64 offset)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceAppUtil, #name, name)
psv_log_base sceAppUtil("SceAppUtil", []()
@ -12,17 +144,17 @@ psv_log_base sceAppUtil("SceAppUtil", []()
sceAppUtil.on_unload = nullptr;
sceAppUtil.on_stop = nullptr;
//REG_FUNC(0xDAFFE671, sceAppUtilInit);
//REG_FUNC(0xB220B00B, sceAppUtilShutdown);
//REG_FUNC(0x7E8FE96A, sceAppUtilSaveDataSlotCreate);
//REG_FUNC(0x266A7646, sceAppUtilSaveDataSlotDelete);
//REG_FUNC(0x98630136, sceAppUtilSaveDataSlotSetParam);
//REG_FUNC(0x93F0D89F, sceAppUtilSaveDataSlotGetParam);
//REG_FUNC(0x1E2A6158, sceAppUtilSaveDataFileSave);
//REG_FUNC(0xEE85804D, sceAppUtilPhotoMount);
//REG_FUNC(0x9651B941, sceAppUtilPhotoUmount);
//REG_FUNC(0x5DFB9CA0, sceAppUtilSystemParamGetInt);
//REG_FUNC(0x6E6AA267, sceAppUtilSystemParamGetString);
//REG_FUNC(0x9D8AC677, sceAppUtilSaveSafeMemory);
//REG_FUNC(0x3424D772, sceAppUtilLoadSafeMemory);
REG_FUNC(0xDAFFE671, sceAppUtilInit);
REG_FUNC(0xB220B00B, sceAppUtilShutdown);
REG_FUNC(0x7E8FE96A, sceAppUtilSaveDataSlotCreate);
REG_FUNC(0x266A7646, sceAppUtilSaveDataSlotDelete);
REG_FUNC(0x98630136, sceAppUtilSaveDataSlotSetParam);
REG_FUNC(0x93F0D89F, sceAppUtilSaveDataSlotGetParam);
REG_FUNC(0x1E2A6158, sceAppUtilSaveDataFileSave);
REG_FUNC(0xEE85804D, sceAppUtilPhotoMount);
REG_FUNC(0x9651B941, sceAppUtilPhotoUmount);
REG_FUNC(0x5DFB9CA0, sceAppUtilSystemParamGetInt);
REG_FUNC(0x6E6AA267, sceAppUtilSystemParamGetString);
REG_FUNC(0x9D8AC677, sceAppUtilSaveSafeMemory);
REG_FUNC(0x3424D772, sceAppUtilLoadSafeMemory);
});

View File

@ -4,6 +4,47 @@
extern psv_log_base sceAudio;
s32 sceAudioOutOpenPort(s32 portType, s32 len, s32 freq, s32 param)
{
throw __FUNCTION__;
}
s32 sceAudioOutReleasePort(s32 port)
{
throw __FUNCTION__;
}
s32 sceAudioOutOutput(s32 port, vm::psv::ptr<void> ptr)
{
throw __FUNCTION__;
}
s32 sceAudioOutSetVolume(s32 port, s32 flag, vm::psv::ptr<s32> vol)
{
throw __FUNCTION__;
}
s32 sceAudioOutSetConfig(s32 port, s32 len, s32 freq, s32 param)
{
throw __FUNCTION__;
}
s32 sceAudioOutGetConfig(s32 port, s32 configType)
{
throw __FUNCTION__;
}
s32 sceAudioOutGetRestSample(s32 port)
{
throw __FUNCTION__;
}
s32 sceAudioOutGetAdopt(s32 portType)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudio, #name, name)
psv_log_base sceAudio("SceAudio", []()
@ -12,13 +53,13 @@ psv_log_base sceAudio("SceAudio", []()
sceAudio.on_unload = nullptr;
sceAudio.on_stop = nullptr;
//REG_FUNC(0x5BC341E4, sceAudioOutOpenPort);
//REG_FUNC(0x69E2E6B5, sceAudioOutReleasePort);
//REG_FUNC(0x02DB3F5F, sceAudioOutOutput);
//REG_FUNC(0x64167F11, sceAudioOutSetVolume);
//REG_FUNC(0xB8BA0D07, sceAudioOutSetConfig);
//REG_FUNC(0x9C8EDAEA, sceAudioOutGetConfig);
//REG_FUNC(0x9A5370C4, sceAudioOutGetRestSample);
//REG_FUNC(0x12FB1767, sceAudioOutGetAdopt);
REG_FUNC(0x5BC341E4, sceAudioOutOpenPort);
REG_FUNC(0x69E2E6B5, sceAudioOutReleasePort);
REG_FUNC(0x02DB3F5F, sceAudioOutOutput);
REG_FUNC(0x64167F11, sceAudioOutSetVolume);
REG_FUNC(0xB8BA0D07, sceAudioOutSetConfig);
REG_FUNC(0x9C8EDAEA, sceAudioOutGetConfig);
REG_FUNC(0x9A5370C4, sceAudioOutGetRestSample);
REG_FUNC(0x12FB1767, sceAudioOutGetAdopt);
//REG_FUNC(0xC6D8D775, sceAudioInRaw);
});

View File

@ -4,6 +4,22 @@
extern psv_log_base sceAudioIn;
s32 sceAudioInOpenPort(s32 portType, s32 grain, s32 freq, s32 param)
{
throw __FUNCTION__;
}
s32 sceAudioInReleasePort(s32 port)
{
throw __FUNCTION__;
}
s32 sceAudioInInput(s32 port, vm::psv::ptr<void> destPtr)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudioIn, #name, name)
psv_log_base sceAudioIn("SceAudioIn", []()
@ -12,8 +28,8 @@ psv_log_base sceAudioIn("SceAudioIn", []()
sceAudioIn.on_unload = nullptr;
sceAudioIn.on_stop = nullptr;
//REG_FUNC(0x638ADD2D, sceAudioInInput);
//REG_FUNC(0x39B50DC1, sceAudioInOpenPort);
//REG_FUNC(0x3A61B8C4, sceAudioInReleasePort);
REG_FUNC(0x638ADD2D, sceAudioInInput);
REG_FUNC(0x39B50DC1, sceAudioInOpenPort);
REG_FUNC(0x3A61B8C4, sceAudioInReleasePort);
//REG_FUNC(0x566AC433, sceAudioInGetAdopt);
});

View File

@ -4,6 +4,122 @@
extern psv_log_base sceAudiodec;
struct SceAudiodecInitStreamParam
{
u32 size;
u32 totalStreams;
};
struct SceAudiodecInitChParam
{
u32 size;
u32 totalCh;
};
union SceAudiodecInitParam
{
u32 size;
SceAudiodecInitChParam at9;
SceAudiodecInitStreamParam mp3;
SceAudiodecInitStreamParam aac;
SceAudiodecInitStreamParam celp;
};
struct SceAudiodecInfoAt9
{
u32 size;
u8 configData[4];
u32 ch;
u32 bitRate;
u32 samplingRate;
u32 superFrameSize;
u32 framesInSuperFrame;
};
struct SceAudiodecInfoMp3
{
u32 size;
u32 ch;
u32 version;
};
struct SceAudiodecInfoAac
{
u32 size;
u32 isAdts;
u32 ch;
u32 samplingRate;
u32 isSbr;
};
struct SceAudiodecInfoCelp
{
u32 size;
u32 excitationMode;
u32 samplingRate;
u32 bitRate;
u32 lostCount;
};
union SceAudiodecInfo
{
u32 size;
SceAudiodecInfoAt9 at9;
SceAudiodecInfoMp3 mp3;
SceAudiodecInfoAac aac;
SceAudiodecInfoCelp celp;
};
struct SceAudiodecCtrl
{
u32 size;
s32 handle;
vm::psv::ptr<u8> pEs;
u32 inputEsSize;
u32 maxEsSize;
vm::psv::ptr<void> pPcm;
u32 outputPcmSize;
u32 maxPcmSize;
u32 wordLength;
vm::psv::ptr<SceAudiodecInfo> pInfo;
};
s32 sceAudiodecInitLibrary(u32 codecType, vm::psv::ptr<SceAudiodecInitParam> pInitParam)
{
throw __FUNCTION__;
}
s32 sceAudiodecTermLibrary(u32 codecType)
{
throw __FUNCTION__;
}
s32 sceAudiodecCreateDecoder(vm::psv::ptr<SceAudiodecCtrl> pCtrl, u32 codecType)
{
throw __FUNCTION__;
}
s32 sceAudiodecDeleteDecoder(vm::psv::ptr<SceAudiodecCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudiodecDecode(vm::psv::ptr<SceAudiodecCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudiodecClearContext(vm::psv::ptr<SceAudiodecCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudiodecGetInternalError(vm::psv::ptr<SceAudiodecCtrl> pCtrl, vm::psv::ptr<s32> pInternalError)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudiodec, #name, name)
psv_log_base sceAudiodec("SceAudiodec", []()
@ -12,11 +128,11 @@ psv_log_base sceAudiodec("SceAudiodec", []()
sceAudiodec.on_unload = nullptr;
sceAudiodec.on_stop = nullptr;
//REG_FUNC(0x445C2CEF, sceAudiodecInitLibrary);
//REG_FUNC(0x45719B9D, sceAudiodecTermLibrary);
//REG_FUNC(0x4DFD3AAA, sceAudiodecCreateDecoder);
//REG_FUNC(0xE7A24E16, sceAudiodecDeleteDecoder);
//REG_FUNC(0xCCDABA04, sceAudiodecDecode);
//REG_FUNC(0xF72F9B64, sceAudiodecClearContext);
//REG_FUNC(0x883B0CF5, sceAudiodecGetInternalError);
REG_FUNC(0x445C2CEF, sceAudiodecInitLibrary);
REG_FUNC(0x45719B9D, sceAudiodecTermLibrary);
REG_FUNC(0x4DFD3AAA, sceAudiodecCreateDecoder);
REG_FUNC(0xE7A24E16, sceAudiodecDeleteDecoder);
REG_FUNC(0xCCDABA04, sceAudiodecDecode);
REG_FUNC(0xF72F9B64, sceAudiodecClearContext);
REG_FUNC(0x883B0CF5, sceAudiodecGetInternalError);
});

View File

@ -4,6 +4,104 @@
extern psv_log_base sceAudioenc;
struct SceAudioencInitStreamParam
{
u32 size;
u32 totalStreams;
};
struct SceAudioencInfoCelp
{
u32 size;
u32 excitationMode;
u32 samplingRate;
u32 bitRate;
};
struct SceAudioencOptInfoCelp
{
u32 size;
u8 header[32];
u32 headerSize;
u32 encoderVersion;
};
union SceAudioencInitParam
{
u32 size;
SceAudioencInitStreamParam celp;
};
union SceAudioencInfo
{
u32 size;
SceAudioencInfoCelp celp;
};
union SceAudioencOptInfo
{
u32 size;
SceAudioencOptInfoCelp celp;
};
struct SceAudioencCtrl
{
u32 size;
s32 handle;
vm::psv::ptr<u8> pInputPcm;
u32 inputPcmSize;
u32 maxPcmSize;
vm::psv::ptr<void> pOutputEs;
u32 outputEsSize;
u32 maxEsSize;
u32 wordLength;
vm::psv::ptr<SceAudioencInfo> pInfo;
vm::psv::ptr<SceAudioencOptInfo> pOptInfo;
};
s32 sceAudioencInitLibrary(u32 codecType, vm::psv::ptr<SceAudioencInitParam> pInitParam)
{
throw __FUNCTION__;
}
s32 sceAudioencTermLibrary(u32 codecType)
{
throw __FUNCTION__;
}
s32 sceAudioencCreateEncoder(vm::psv::ptr<SceAudioencCtrl> pCtrl, u32 codecType)
{
throw __FUNCTION__;
}
s32 sceAudioencDeleteEncoder(vm::psv::ptr<SceAudioencCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudioencEncode(vm::psv::ptr<SceAudioencCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudioencClearContext(vm::psv::ptr<SceAudioencCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudioencGetOptInfo(vm::psv::ptr<SceAudioencCtrl> pCtrl)
{
throw __FUNCTION__;
}
s32 sceAudioencGetInternalError(vm::psv::ptr<SceAudioencCtrl> pCtrl, vm::psv::ptr<s32> pInternalError)
{
throw __FUNCTION__;
}
#define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudioenc, #name, name)
psv_log_base sceAudioenc("SceAudioenc", []()
@ -12,12 +110,12 @@ psv_log_base sceAudioenc("SceAudioenc", []()
sceAudioenc.on_unload = nullptr;
sceAudioenc.on_stop = nullptr;
//REG_FUNC(0x76EE4DC6, sceAudioencInitLibrary);
//REG_FUNC(0xAB32D022, sceAudioencTermLibrary);
//REG_FUNC(0x64C04AE8, sceAudioencCreateEncoder);
//REG_FUNC(0xC6BA5EE6, sceAudioencDeleteEncoder);
//REG_FUNC(0xD85DB29C, sceAudioencEncode);
//REG_FUNC(0x9386F42D, sceAudioencClearContext);
//REG_FUNC(0xD01C63A3, sceAudioencGetOptInfo);
//REG_FUNC(0x452246D0, sceAudioencGetInternalError);
REG_FUNC(0x76EE4DC6, sceAudioencInitLibrary);
REG_FUNC(0xAB32D022, sceAudioencTermLibrary);
REG_FUNC(0x64C04AE8, sceAudioencCreateEncoder);
REG_FUNC(0xC6BA5EE6, sceAudioencDeleteEncoder);
REG_FUNC(0xD85DB29C, sceAudioencEncode);
REG_FUNC(0x9386F42D, sceAudioencClearContext);
REG_FUNC(0xD01C63A3, sceAudioencGetOptInfo);
REG_FUNC(0x452246D0, sceAudioencGetInternalError);
});