Merge pull request #1813 from mattweb28/add-modules

Added sceJpeg & sceMd5
This commit is contained in:
Henrik Rydgård 2013-05-15 05:18:09 -07:00
commit 2846467e63
12 changed files with 251 additions and 3 deletions

View File

@ -762,6 +762,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceImpose.h Core/HLE/sceImpose.h
Core/HLE/sceIo.cpp Core/HLE/sceIo.cpp
Core/HLE/sceIo.h Core/HLE/sceIo.h
Core/HLE/sceJpeg.cpp
Core/HLE/sceJpeg.h
Core/HLE/sceKernel.cpp Core/HLE/sceKernel.cpp
Core/HLE/sceKernel.h Core/HLE/sceKernel.h
Core/HLE/sceKernelAlarm.cpp Core/HLE/sceKernelAlarm.cpp
@ -796,6 +798,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceOpenPSID.h Core/HLE/sceOpenPSID.h
Core/HLE/sceP3da.cpp Core/HLE/sceP3da.cpp
Core/HLE/sceP3da.h Core/HLE/sceP3da.h
Core/HLE/sceMd5.cpp
Core/HLE/sceMd5.h
Core/HLE/sceMp4.cpp Core/HLE/sceMp4.cpp
Core/HLE/sceMp4.h Core/HLE/sceMp4.h
Core/HLE/sceMp3.cpp Core/HLE/sceMp3.cpp

View File

@ -38,6 +38,7 @@ set(SRCS
HLE/sceHttp.cpp HLE/sceHttp.cpp
HLE/sceImpose.cpp HLE/sceImpose.cpp
HLE/sceIo.cpp HLE/sceIo.cpp
HLE/sceJpeg.cpp
HLE/sceKernel.cpp HLE/sceKernel.cpp
HLE/sceKernelAlarm.cpp HLE/sceKernelAlarm.cpp
HLE/sceKernelEventFlag.cpp HLE/sceKernelEventFlag.cpp
@ -55,6 +56,7 @@ set(SRCS
HLE/sceNet.cpp HLE/sceNet.cpp
HLE/sceNp.cpp HLE/sceNp.cpp
HLE/sceP3da.cpp HLE/sceP3da.cpp
HLE/sceMd5.cpp
HLE/sceMp4.cpp HLE/sceMp4.cpp
HLE/sceMp3.cpp HLE/sceMp3.cpp
HLE/scePauth.cpp HLE/scePauth.cpp

View File

@ -190,6 +190,7 @@
<ClCompile Include="HLE\sceHttp.cpp" /> <ClCompile Include="HLE\sceHttp.cpp" />
<ClCompile Include="HLE\sceImpose.cpp" /> <ClCompile Include="HLE\sceImpose.cpp" />
<ClCompile Include="HLE\sceIo.cpp" /> <ClCompile Include="HLE\sceIo.cpp" />
<ClCompile Include="HLE\sceJpeg.cpp" />
<ClCompile Include="HLE\sceKernel.cpp" /> <ClCompile Include="HLE\sceKernel.cpp" />
<ClCompile Include="HLE\sceKernelAlarm.cpp" /> <ClCompile Include="HLE\sceKernelAlarm.cpp" />
<ClCompile Include="HLE\sceKernelEventFlag.cpp" /> <ClCompile Include="HLE\sceKernelEventFlag.cpp" />
@ -214,6 +215,7 @@
<ClCompile Include="HLE\scePsmf.cpp" /> <ClCompile Include="HLE\scePsmf.cpp" />
<ClCompile Include="HLE\scePspNpDrm_user.cpp" /> <ClCompile Include="HLE\scePspNpDrm_user.cpp" />
<ClCompile Include="HLE\sceP3da.cpp" /> <ClCompile Include="HLE\sceP3da.cpp" />
<ClCompile Include="HLE\sceMd5.cpp" />
<ClCompile Include="HLE\sceMp4.cpp" /> <ClCompile Include="HLE\sceMp4.cpp" />
<ClCompile Include="HLE\sceMp3.cpp" /> <ClCompile Include="HLE\sceMp3.cpp" />
<ClCompile Include="HLE\sceGameUpdate.cpp" /> <ClCompile Include="HLE\sceGameUpdate.cpp" />
@ -364,6 +366,7 @@
<ClInclude Include="HLE\sceHttp.h" /> <ClInclude Include="HLE\sceHttp.h" />
<ClInclude Include="HLE\sceImpose.h" /> <ClInclude Include="HLE\sceImpose.h" />
<ClInclude Include="HLE\sceIo.h" /> <ClInclude Include="HLE\sceIo.h" />
<ClInclude Include="HLE\sceJpeg.h" />
<ClInclude Include="HLE\sceKernel.h" /> <ClInclude Include="HLE\sceKernel.h" />
<ClInclude Include="HLE\sceKernelAlarm.h" /> <ClInclude Include="HLE\sceKernelAlarm.h" />
<ClInclude Include="HLE\sceKernelEventFlag.h" /> <ClInclude Include="HLE\sceKernelEventFlag.h" />
@ -387,6 +390,7 @@
<ClInclude Include="HLE\scePsmf.h" /> <ClInclude Include="HLE\scePsmf.h" />
<ClInclude Include="HLE\scePspNpDrm_user.h" /> <ClInclude Include="HLE\scePspNpDrm_user.h" />
<ClInclude Include="HLE\sceP3da.h" /> <ClInclude Include="HLE\sceP3da.h" />
<ClInclude Include="HLE\sceMd5.h" />
<ClInclude Include="HLE\sceMp4.h" /> <ClInclude Include="HLE\sceMp4.h" />
<ClInclude Include="HLE\sceMp3.h" /> <ClInclude Include="HLE\sceMp3.h" />
<ClInclude Include="HLE\sceGameUpdate.h" /> <ClInclude Include="HLE\sceGameUpdate.h" />

View File

@ -186,9 +186,15 @@
<ClCompile Include="HLE\sceIo.cpp"> <ClCompile Include="HLE\sceIo.cpp">
<Filter>HLE\Libraries</Filter> <Filter>HLE\Libraries</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="HLE\sceJpeg.cpp">
<Filter>HLE\Libraries</Filter>
</ClCompile>
<ClCompile Include="HLE\sceMpeg.cpp"> <ClCompile Include="HLE\sceMpeg.cpp">
<Filter>HLE\Libraries</Filter> <Filter>HLE\Libraries</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="HLE\sceMd5.cpp">
<Filter>HLE\Libraries</Filter>
</ClCompile>
<ClCompile Include="HLE\sceMp4.cpp"> <ClCompile Include="HLE\sceMp4.cpp">
<Filter>HLE\Libraries</Filter> <Filter>HLE\Libraries</Filter>
</ClCompile> </ClCompile>
@ -539,9 +545,15 @@
<ClInclude Include="HLE\sceIo.h"> <ClInclude Include="HLE\sceIo.h">
<Filter>HLE\Libraries</Filter> <Filter>HLE\Libraries</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="HLE\sceJpeg.h">
<Filter>HLE\Libraries</Filter>
</ClInclude>
<ClInclude Include="HLE\sceMpeg.h"> <ClInclude Include="HLE\sceMpeg.h">
<Filter>HLE\Libraries</Filter> <Filter>HLE\Libraries</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="HLE\sceMd5.h">
<Filter>HLE\Libraries</Filter>
</ClInclude>
<ClInclude Include="HLE\sceMp4.h"> <ClInclude Include="HLE\sceMp4.h">
<Filter>HLE\Libraries</Filter> <Filter>HLE\Libraries</Filter>
</ClInclude> </ClInclude>

View File

@ -62,6 +62,8 @@
#include "sceMp3.h" #include "sceMp3.h"
#include "scePauth.h" #include "scePauth.h"
#include "sceNp.h" #include "sceNp.h"
#include "sceMd5.h"
#include "sceJpeg.h"
#define N(s) s #define N(s) s
@ -263,7 +265,9 @@ void RegisterAllModules() {
Register_sceNp(); Register_sceNp();
Register_sceNpCommerce2(); Register_sceNpCommerce2();
Register_sceNpService(); Register_sceNpService();
Regester_sceNpAuth(); Register_sceNpAuth();
Register_sceMd5();
Register_sceJpeg();
for (int i = 0; i < numModules; i++) for (int i = 0; i < numModules; i++)
{ {

120
Core/HLE/sceJpeg.cpp Normal file
View File

@ -0,0 +1,120 @@
// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "HLE.h"
int sceJpegDecompressAllImage()
{
ERROR_LOG(HLE, "UNIMPL sceJpegDecompressAllImage");
return 0;
}
int sceJpegMJpegCsc()
{
ERROR_LOG(HLE, "UNIMPL sceJpegMJpegCsc");
return 0;
}
int sceJpegDecodeMJpeg()
{
ERROR_LOG(HLE, "UNIMPL sceJpegDecodeMJpeg");
return 0;
}
int sceJpegDecodeMJpegYCbCrSuccessively()
{
ERROR_LOG(HLE, "UNIMPL sceJpegDecodeMJpegYCbCrSuccessively");
return 0;
}
int sceJpegDeleteMJpeg()
{
ERROR_LOG(HLE, "UNIMPL sceJpegDeleteMJpeg");
return 0;
}
int sceJpegDecodeMJpegSuccessively()
{
ERROR_LOG(HLE, "UNIMPL sceJpegDecodeMJpegSuccessively");
return 0;
}
int sceJpegCsc()
{
ERROR_LOG(HLE, "UNIMPL sceJpegCsc");
return 0;
}
int sceJpegFinishMJpeg()
{
ERROR_LOG(HLE, "UNIMPL sceJpegFinishMJpeg");
return 0;
}
int sceJpegGetOutputInfo()
{
ERROR_LOG(HLE, "UNIMPL sceJpegGetOutputInfo");
return 0;
}
int sceJpegDecodeMJpegYCbCr()
{
ERROR_LOG(HLE, "UNIMPL sceJpegDecodeMJpegYCbCr");
return 0;
}
int sceJpeg_9B36444C()
{
ERROR_LOG(HLE, "UNIMPL sceJpeg_9B36444C");
return 0;
}
int sceJpegCreateMJpeg()
{
ERROR_LOG(HLE, "UNIMPL sceJpegCreateMJpeg");
return 0;
}
int sceJpegInitMJpeg()
{
ERROR_LOG(HLE, "UNIMPL sceJpegInitMJpeg");
return 0;
}
const HLEFunction sceJpeg[] =
{
{0x0425B986, WrapI_V<sceJpegDecompressAllImage>, "sceJpegDecompressAllImage"},
{0x04B5AE02, WrapI_V<sceJpegMJpegCsc>, "sceJpegMJpegCsc"},
{0x04B93CEF, WrapI_V<sceJpegDecodeMJpeg>, "sceJpegDecodeMJpeg"},
{0x227662D7, WrapI_V<sceJpegDecodeMJpegYCbCrSuccessively>, "sceJpegDecodeMJpegYCbCrSuccessively"},
{0x48B602B7, WrapI_V<sceJpegDeleteMJpeg>, "sceJpegDeleteMJpeg"},
{0x64B6F978, WrapI_V<sceJpegDecodeMJpegSuccessively>, "sceJpegDecodeMJpegSuccessively"},
{0x67F0ED84, WrapI_V<sceJpegCsc>, "sceJpegCsc"},
{0x7D2F3D7F, WrapI_V<sceJpegFinishMJpeg>, "sceJpegFinishMJpeg"},
{0x8F2BB012, WrapI_V<sceJpegGetOutputInfo>, "sceJpegGetOutputInfo"},
{0x91EED83C, WrapI_V<sceJpegDecodeMJpegYCbCr>, "sceJpegDecodeMJpegYCbCr"},
{0x9B36444C, WrapI_V<sceJpeg_9B36444C>, "sceJpeg_9B36444C"},
{0x9D47469C, WrapI_V<sceJpegCreateMJpeg>, "sceJpegCreateMJpeg"},
{0xAC9E70E6, WrapI_V<sceJpegInitMJpeg>, "sceJpegInitMJpeg"},
};
void Register_sceJpeg()
{
RegisterModule("sceJpeg", ARRAY_SIZE(sceJpeg), sceJpeg);
}

22
Core/HLE/sceJpeg.h Normal file
View File

@ -0,0 +1,22 @@
// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
#include "HLE.h"
void Register_sceJpeg();

56
Core/HLE/sceMd5.cpp Normal file
View File

@ -0,0 +1,56 @@
// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include "HLE.h"
int sceMd5BlockInit(u32 ctxAddr)
{
ERROR_LOG(HLE, "UNIMPL sceMd5BlockInit(%08x)", ctxAddr);
return 0;
}
int sceMd5BlockUpdate(u32 ctxAddr, u32 dataPtr, u32 len)
{
ERROR_LOG(HLE, "UNIMPL sceMd5BlockUpdate(%08x, %08x, %d)", ctxAddr, dataPtr, len);
return 0;
}
int sceMd5BlockResult(u32 ctxAddr, u32 digestAddr)
{
ERROR_LOG(HLE, "UNIMPL sceMd5BlockResult(%08x, %08x)", ctxAddr, digestAddr);
return 0;
}
int sceMd5Digest(u32 dataPtr, u32 len, u32 digestAddr)
{
ERROR_LOG(HLE, "UNIMPL sceMd5Digest(%08x, %d, %08x)", dataPtr, len, digestAddr);
return 0;
}
const HLEFunction sceMd5[] =
{
{0x19884A15, WrapI_U<sceMd5BlockInit>, "sceMd5BlockInit"},
{0xA30206C2, WrapI_UUU<sceMd5BlockUpdate>, "sceMd5BlockUpdate"},
{0x4876AFFF, WrapI_UU<sceMd5BlockResult>, "sceMd5BlockResult"},
{0x98E31A9E, WrapI_UUU<sceMd5Digest>, "sceMd5Digest"},
};
void Register_sceMd5()
{
RegisterModule("sceMd5", ARRAY_SIZE(sceMd5), sceMd5);
}

22
Core/HLE/sceMd5.h Normal file
View File

@ -0,0 +1,22 @@
// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#pragma once
#include "HLE.h"
void Register_sceMd5();

View File

@ -51,7 +51,7 @@ const HLEFunction sceNpAuth[] = {
{0xA1DE86F8, 0, "sceNpAuth_A1DE86F8"}, {0xA1DE86F8, 0, "sceNpAuth_A1DE86F8"},
}; };
void Regester_sceNpAuth() void Register_sceNpAuth()
{ {
RegisterModule("sceNpAuth", ARRAY_SIZE(sceNpAuth), sceNpAuth); RegisterModule("sceNpAuth", ARRAY_SIZE(sceNpAuth), sceNpAuth);
} }

View File

@ -20,4 +20,4 @@
void Register_sceNp(); void Register_sceNp();
void Register_sceNpCommerce2(); void Register_sceNpCommerce2();
void Register_sceNpService(); void Register_sceNpService();
void Regester_sceNpAuth(); void Register_sceNpAuth();

View File

@ -216,6 +216,7 @@ LOCAL_SRC_FILES := \
$(SRC)/Core/HLE/sceHttp.cpp \ $(SRC)/Core/HLE/sceHttp.cpp \
$(SRC)/Core/HLE/sceImpose.cpp \ $(SRC)/Core/HLE/sceImpose.cpp \
$(SRC)/Core/HLE/sceIo.cpp \ $(SRC)/Core/HLE/sceIo.cpp \
$(SRC)/Core/HLE/sceJpeg.cpp \
$(SRC)/Core/HLE/sceKernel.cpp \ $(SRC)/Core/HLE/sceKernel.cpp \
$(SRC)/Core/HLE/sceKernelAlarm.cpp \ $(SRC)/Core/HLE/sceKernelAlarm.cpp \
$(SRC)/Core/HLE/sceKernelEventFlag.cpp \ $(SRC)/Core/HLE/sceKernelEventFlag.cpp \
@ -230,6 +231,7 @@ LOCAL_SRC_FILES := \
$(SRC)/Core/HLE/sceKernelTime.cpp \ $(SRC)/Core/HLE/sceKernelTime.cpp \
$(SRC)/Core/HLE/sceKernelVTimer.cpp \ $(SRC)/Core/HLE/sceKernelVTimer.cpp \
$(SRC)/Core/HLE/sceMpeg.cpp \ $(SRC)/Core/HLE/sceMpeg.cpp \
$(SRC)/Core/HLE/sceMd5.cpp \
$(SRC)/Core/HLE/sceMp4.cpp \ $(SRC)/Core/HLE/sceMp4.cpp \
$(SRC)/Core/HLE/sceMp3.cpp \ $(SRC)/Core/HLE/sceMp3.cpp \
$(SRC)/Core/HLE/sceNet.cpp \ $(SRC)/Core/HLE/sceNet.cpp \