rpcsx/rpcs3/Emu/PSP2/Modules/sceDeflt.cpp

92 lines
2.5 KiB
C++
Raw Normal View History

#include "stdafx.h"
#include "Emu/System.h"
2016-05-13 12:17:26 +02:00
#include "Emu/PSP2/ARMv7Module.h"
2015-06-21 01:04:01 +02:00
#include "sceDeflt.h"
2017-05-13 20:30:37 +02:00
logs::channel sceDeflt("sceDeflt");
2016-02-01 22:53:16 +01:00
s32 sceGzipIsValid(vm::cptr<void> pSrcGzip)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceGzipGetInfo(vm::cptr<void> pSrcGzip, vm::cpptr<void> ppvExtra, vm::cpptr<char> ppszName, vm::cpptr<char> ppszComment, vm::ptr<u16> pusCrc, vm::cpptr<void> ppvData)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
vm::cptr<char> sceGzipGetName(vm::cptr<void> pSrcGzip)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
vm::cptr<char> sceGzipGetComment(vm::cptr<void> pSrcGzip)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
vm::cptr<void> sceGzipGetCompressedData(vm::cptr<void> pSrcGzip)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceGzipDecompress(vm::ptr<void> pDst, u32 uiBufSize, vm::cptr<void> pSrcGzip, vm::ptr<u32> puiCrc32)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceZlibIsValid(vm::cptr<void> pSrcZlib)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceZlibGetInfo(vm::cptr<void> pSrcZlib, vm::ptr<u8> pbCmf, vm::ptr<u8> pbFlg, vm::ptr<u32> puiDictId, vm::cpptr<void> ppvData)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
vm::cptr<void> sceZlibGetCompressedData(vm::cptr<void> pSrcZlib)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceZlibDecompress(vm::ptr<void> pDst, u32 uiBufSize, vm::cptr<void> pSrcZlib, vm::ptr<u32> puiAdler32)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
u32 sceZlibAdler32(u32 uiAdler, vm::cptr<u8> pSrc, u32 uiSize)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceDeflateDecompress(vm::ptr<void> pDst, u32 uiBufSize, vm::cptr<void> pSrcDeflate, vm::cpptr<void> ppNext)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
s32 sceZipGetInfo(vm::cptr<void> pSrc, vm::cpptr<void> ppvExtra, vm::ptr<u32> puiCrc, vm::cpptr<void> ppvData)
2015-01-29 22:42:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-29 22:42:53 +01:00
}
2016-02-01 22:53:16 +01:00
#define REG_FUNC(nid, name) REG_FNID(SceDeflt, nid, name)
2016-02-01 22:53:16 +01:00
DECLARE(arm_module_manager::SceDeflt)("SceDeflt", []()
{
2015-01-29 22:42:53 +01:00
REG_FUNC(0xCD83A464, sceZlibAdler32);
REG_FUNC(0x110D5050, sceDeflateDecompress);
REG_FUNC(0xE3CB51A3, sceGzipDecompress);
REG_FUNC(0xBABCF5CF, sceGzipGetComment);
REG_FUNC(0xE1844802, sceGzipGetCompressedData);
REG_FUNC(0x1B8E5862, sceGzipGetInfo);
REG_FUNC(0xAEBAABE6, sceGzipGetName);
REG_FUNC(0xDEDADC31, sceGzipIsValid);
REG_FUNC(0xE38F754D, sceZlibDecompress);
REG_FUNC(0xE680A65A, sceZlibGetCompressedData);
REG_FUNC(0x4C0A685D, sceZlibGetInfo);
REG_FUNC(0x14A0698D, sceZlibIsValid);
});