2012-11-01 15:19:01 +00:00
|
|
|
// 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
|
2012-11-04 22:01:49 +00:00
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
// 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/.
|
|
|
|
|
2014-03-15 18:22:19 +00:00
|
|
|
#include "Core/HLE/HLE.h"
|
|
|
|
#include "Core/HLE/FunctionWrappers.h"
|
|
|
|
#include "Core/HLE/sceHprm.h"
|
|
|
|
#include "Core/MemMap.h"
|
|
|
|
#include "Core/MIPS/MIPS.h"
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2014-12-08 09:40:08 +00:00
|
|
|
static u32 sceHprmPeekCurrentKey(u32 keyAddress) {
|
2013-11-20 13:53:31 +00:00
|
|
|
DEBUG_LOG(HLE,"0=sceHprmPeekCurrentKey(ptr)");
|
2012-11-01 15:19:01 +00:00
|
|
|
Memory::Write_U32(0, keyAddress);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-01-04 08:04:27 +00:00
|
|
|
// TODO: Might make sense to reflect the headphone status of the host here,
|
|
|
|
// if the games adjust their sound.
|
2014-12-08 09:40:08 +00:00
|
|
|
static u32 sceHprmIsHeadphoneExist() {
|
2013-01-04 08:04:27 +00:00
|
|
|
DEBUG_LOG(HLE, "sceHprmIsHeadphoneExist()");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-12-08 09:40:08 +00:00
|
|
|
static u32 sceHprmIsMicrophoneExist() {
|
2013-01-04 08:04:27 +00:00
|
|
|
DEBUG_LOG(HLE, "sceHprmIsMicrophoneExist()");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-12-08 09:40:08 +00:00
|
|
|
static u32 sceHprmIsRemoteExist() {
|
2013-01-04 08:04:27 +00:00
|
|
|
DEBUG_LOG(HLE, "sceHprmIsRemoteExist()");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-12-08 09:40:08 +00:00
|
|
|
static u32 sceHprmPeekLatch(u32 latchAddr) {
|
2014-01-02 13:46:51 +00:00
|
|
|
DEBUG_LOG(HLE,"sceHprmPeekLatch latchAddr %08x",latchAddr);
|
2014-01-02 13:43:19 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-12-08 09:40:08 +00:00
|
|
|
static u32 sceHprmReadLatch(u32 latchAddr) {
|
2014-01-02 13:43:19 +00:00
|
|
|
DEBUG_LOG(HLE,"sceHprmReadLatch latchAddr %08x",latchAddr);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-11-01 15:19:01 +00:00
|
|
|
const HLEFunction sceHprm[] =
|
|
|
|
{
|
2013-05-20 02:38:00 +00:00
|
|
|
{0x089fdfa4, 0, "sceHprm_089fdfa4"},
|
2012-11-05 09:05:09 +00:00
|
|
|
{0x1910B327, &WrapU_U<sceHprmPeekCurrentKey>, "sceHprmPeekCurrentKey"},
|
2013-01-04 08:04:27 +00:00
|
|
|
{0x208DB1BD, WrapU_V<sceHprmIsRemoteExist>, "sceHprmIsRemoteExist"},
|
|
|
|
{0x7E69EDA4, WrapU_V<sceHprmIsHeadphoneExist>, "sceHprmIsHeadphoneExist"},
|
|
|
|
{0x219C58F1, WrapU_V<sceHprmIsMicrophoneExist>, "sceHprmIsMicrophoneExist"},
|
2012-11-01 15:19:01 +00:00
|
|
|
{0xC7154136, 0, "sceHprmRegisterCallback"},
|
2013-05-20 02:21:59 +00:00
|
|
|
{0x444ED0B7, 0, "sceHprmUnregitserCallback"}, // Typo.
|
2014-01-02 13:43:19 +00:00
|
|
|
{0x2BCEC83E, &WrapU_U<sceHprmPeekLatch>, "sceHprmPeekLatch"},
|
|
|
|
{0x40D2F9F0, &WrapU_U<sceHprmReadLatch>, "sceHprmReadLatch"},
|
2012-11-01 15:19:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void Register_sceHprm()
|
|
|
|
{
|
2013-01-04 08:04:27 +00:00
|
|
|
RegisterModule("sceHprm", ARRAY_SIZE(sceHprm), sceHprm);
|
2012-11-01 15:19:01 +00:00
|
|
|
}
|