mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
05ab192c9c
Especially templates.
118 lines
3.4 KiB
C++
118 lines
3.4 KiB
C++
// 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/.
|
|
|
|
// This is pretty much a stub implementation. Doesn't actually do anything, just tries to return values
|
|
// to keep games happy anyway.
|
|
|
|
#include "Core/HLE/HLE.h"
|
|
#include "Core/HLE/FunctionWrappers.h"
|
|
|
|
#include "Core/HLE/sceNp.h"
|
|
|
|
int sceNp_857B47D3()
|
|
{
|
|
// No parameters
|
|
ERROR_LOG(HLE, "UNIMPL sceNp_857B47D3()");
|
|
return 0;
|
|
}
|
|
|
|
int sceNp_37E1E274()
|
|
{
|
|
// No parameters
|
|
ERROR_LOG(HLE, "UNIMPL sceNp_37E1E274()");
|
|
return 0;
|
|
}
|
|
|
|
const HLEFunction sceNp[] = {
|
|
{0x857B47D3, &WrapI_V<sceNp_857B47D3>, "sceNp_857B47D3"},
|
|
{0x37E1E274, &WrapI_V<sceNp_37E1E274>, "sceNp_37E1E274"},
|
|
};
|
|
|
|
void Register_sceNp()
|
|
{
|
|
RegisterModule("sceNp", ARRAY_SIZE(sceNp), sceNp);
|
|
}
|
|
|
|
int sceNpAuth_4EC1F667()
|
|
{
|
|
// No parameters
|
|
ERROR_LOG(HLE, "UNIMPL sceNpAuth_4EC1F667()");
|
|
return 0;
|
|
}
|
|
|
|
int sceNpAuth_A1DE86F8(u32 poolSize, u32 stackSize, u32 threadPrio)
|
|
{
|
|
ERROR_LOG(HLE, "UNIMPL sceNpAuth_A1DE86F8(%08x, %08x, %08x)",poolSize, stackSize, threadPrio);
|
|
return 0;
|
|
}
|
|
|
|
const HLEFunction sceNpAuth[] = {
|
|
{0x4EC1F667, &WrapI_V<sceNpAuth_4EC1F667>, "sceNpAuth_4EC1F667"},
|
|
{0xA1DE86F8, &WrapI_UUU<sceNpAuth_A1DE86F8>, "sceNpAuth_A1DE86F8"},
|
|
};
|
|
|
|
void Register_sceNpAuth()
|
|
{
|
|
RegisterModule("sceNpAuth", ARRAY_SIZE(sceNpAuth), sceNpAuth);
|
|
}
|
|
|
|
int sceNpService_00ACFAC3()
|
|
{
|
|
// No parameters
|
|
ERROR_LOG(HLE, "UNIMPL sceNpService_00ACFAC3()");
|
|
return 0;
|
|
}
|
|
|
|
int sceNpService_0F8F5821(u32 poolSize, u32 stackSize, u32 threadPrio)
|
|
{
|
|
ERROR_LOG(HLE, "UNIMPL sceNpService_0F8F5821(%08x, %08x, %08x)",poolSize, stackSize, threadPrio);
|
|
return 0;
|
|
}
|
|
|
|
const HLEFunction sceNpService[] = {
|
|
{0x00ACFAC3, &WrapI_V<sceNpService_00ACFAC3>, "sceNpService_00ACFAC3"},
|
|
{0x0F8F5821, &WrapI_UUU<sceNpService_0F8F5821>, "sceNpService_0F8F5821"},
|
|
};
|
|
|
|
void Register_sceNpService()
|
|
{
|
|
RegisterModule("sceNpService", ARRAY_SIZE(sceNpService), sceNpService);
|
|
}
|
|
|
|
const HLEFunction sceNpCommerce2[] = {
|
|
{0x005B5F20, 0, "sceNpCommerce2_005B5F20"},
|
|
{0x0e9956e3, 0, "sceNpCommerce2_0e9956e3"},
|
|
{0x1888a9fe, 0, "sceNpCommerce2_1888a9fe"},
|
|
{0x1c952dcb, 0, "sceNpCommerce2_1c952dcb"},
|
|
{0x2b25f6e9, 0, "sceNpCommerce2_2b25f6e9"},
|
|
{0x3371d5f1, 0, "sceNpCommerce2_3371d5f1"},
|
|
{0x4ecd4503, 0, "sceNpCommerce2_4ecd4503"},
|
|
{0x590a3229, 0, "sceNpCommerce2_590a3229"},
|
|
{0x6f1fe37f, 0, "sceNpCommerce2_6f1fe37f"},
|
|
{0xa5a34ea4, 0, "sceNpCommerce2_a5a34ea4"},
|
|
{0xaa4a1e3d, 0, "sceNpCommerce2_aa4a1e3d"},
|
|
{0xbc61ffc8, 0, "sceNpCommerce2_bc61ffc8"},
|
|
{0xc7f32242, 0, "sceNpCommerce2_c7f32242"},
|
|
{0xf2278b90, 0, "sceNpCommerce2_f2278b90"},
|
|
{0xf297ab9c, 0, "sceNpCommerce2_f297ab9c"},
|
|
{0xfc30c19e, 0, "sceNpCommerce2_fc30c19e"},
|
|
};
|
|
|
|
void Register_sceNpCommerce2()
|
|
{
|
|
RegisterModule("sceNpCommerce2", ARRAY_SIZE(sceNpCommerce2), sceNpCommerce2);
|
|
} |