Skip to content

Commit

Permalink
Add sceG729 module
Browse files Browse the repository at this point in the history
  • Loading branch information
sum2012 committed Mar 8, 2015
1 parent c55ecc4 commit 039b510
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -1187,6 +1187,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceDisplay.h
Core/HLE/sceDmac.cpp
Core/HLE/sceDmac.h
Core/HLE/sceG729.cpp
Core/HLE/sceG729.h
Core/HLE/sceGameUpdate.cpp
Core/HLE/sceGameUpdate.h
Core/HLE/sceGe.cpp
Expand Down
2 changes: 2 additions & 0 deletions Core/Core.vcxproj
Expand Up @@ -226,6 +226,7 @@
<ClCompile Include="HLE\sceDisplay.cpp" />
<ClCompile Include="HLE\sceDmac.cpp" />
<ClCompile Include="HLE\sceFont.cpp" />
<ClCompile Include="HLE\sceG729" />
<ClCompile Include="HLE\sceGe.cpp" />
<ClCompile Include="HLE\sceHeap.cpp" />
<ClCompile Include="HLE\sceHprm.cpp" />
Expand Down Expand Up @@ -478,6 +479,7 @@
<ClInclude Include="HLE\sceDisplay.h" />
<ClInclude Include="HLE\sceDmac.h" />
<ClInclude Include="HLE\sceFont.h" />
<ClInclude Include="HLE\sceG729" />
<ClInclude Include="HLE\sceGe.h" />
<ClInclude Include="HLE\sceHeap.h" />
<ClInclude Include="HLE\sceHprm.h" />
Expand Down
6 changes: 6 additions & 0 deletions Core/Core.vcxproj.filters
Expand Up @@ -195,6 +195,9 @@
<ClCompile Include="HLE\sceDmac.cpp">
<Filter>HLE\Libraries</Filter>
</ClCompile>
<ClCompile Include="HLE\sceG729.cpp">
<Filter>HLE\Libraries</Filter>
</ClCompile>
<ClCompile Include="HLE\sceGe.cpp">
<Filter>HLE\Libraries</Filter>
</ClCompile>
Expand Down Expand Up @@ -715,6 +718,9 @@
<ClInclude Include="HLE\sceMt19937.h">
<Filter>HLE\Libraries</Filter>
</ClInclude>
<ClInclude Include="HLE\sceG729.h">
<Filter>HLE\Libraries</Filter>
</ClInclude>
<ClInclude Include="HLE\sceGameUpdate.h">
<Filter>HLE\Libraries</Filter>
</ClInclude>
Expand Down
40 changes: 40 additions & 0 deletions Core/HLE/sceG729.cpp
@@ -0,0 +1,40 @@
// 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 "Core/HLE/HLE.h"
#include "Core/HLE/FunctionWrappers.h"

const HLEFunction sceG729[] =
{
{ 0x13F1028A, 0, "sceG729DecodeExit" },
{ 0x17C11696, 0, "sceG729DecodeInitResource" },
{ 0x3489D1F3, 0, "sceG729DecodeCore" },
{ 0x55E14F75, 0, "sceG729DecodeInit" },
{ 0x5A409D1B, 0, "sceG729EncodeExit" },
{ 0x74804D93, 0, "sceG729DecodeReset" },
{ 0x890B86AE, 0, "sceG729DecodeTermResource" },
{ 0x8C87A2CA, 0, "sceG729EncodeReset" },
{ 0x94714D50, 0, "sceG729EncodeTermResource" },
{ 0xAA1E5462, 0, "sceG729EncodeInitResource" },
{ 0xCFCD367C, 0, "sceG729EncodeInit" },
{ 0xDB7259D5, 0, "sceG729EncodeCore" },
};

void Register_sceG729()
{
RegisterModule("sceG729", ARRAY_SIZE(sceG729), sceG729);
}
20 changes: 20 additions & 0 deletions Core/HLE/sceG729.h
@@ -0,0 +1,20 @@
// 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

void Register_sceG729();
11 changes: 1 addition & 10 deletions Core/HLE/sceUsb.cpp
Expand Up @@ -176,21 +176,12 @@ const HLEFunction sceUsbCam[] =
{ 0xF8847F60, 0, "sceUsbCamPollReadMicEnd" },
};

const HLEFunction sceG729[] =
{
{ 0x13f1028a, 0, "sceUsbstorBootSetCapacity" },
{ 0x17c11696, 0, "sceUsbstorBootSetLoadAddr" },
{ 0x3489d1f3, 0, "sceUsbstorBootGetDataSize" },
{ 0x5a409d1b, 0, "sceUsbstorBootSetStatus" },
{ 0x594BBF95, 0, "sceUsbstorBootRegisterNotify" },
{ 0x594BBF95, 0, "sceUsbstorBootUnregisterNotify" },
};

void Register_sceUsb()
{
RegisterModule("sceUsbstor", ARRAY_SIZE(sceUsbstor), sceUsbstor);
RegisterModule("sceUsbstorBoot", ARRAY_SIZE(sceUsbstorBoot), sceUsbstorBoot);
RegisterModule("sceUsb", ARRAY_SIZE(sceUsb), sceUsb);
RegisterModule("sceG729", ARRAY_SIZE(sceG729), sceG729);
}

void Register_sceUsbCam()
Expand Down
1 change: 1 addition & 0 deletions android/jni/Android.mk
Expand Up @@ -233,6 +233,7 @@ EXEC_AND_LIB_FILES := \
$(SRC)/Core/HLE/sceDeflt.cpp \
$(SRC)/Core/HLE/sceDisplay.cpp \
$(SRC)/Core/HLE/sceDmac.cpp \
$(SRC)/Core/HLE/sceG729 \
$(SRC)/Core/HLE/sceGe.cpp \
$(SRC)/Core/HLE/sceFont.cpp \
$(SRC)/Core/HLE/sceHeap.cpp \
Expand Down

0 comments on commit 039b510

Please sign in to comment.