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

119 lines
3.2 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 "sceLocation.h"
2017-05-13 20:30:37 +02:00
logs::channel sceLocation("sceLocation");
2016-02-01 22:53:16 +01:00
2015-06-21 01:04:01 +02:00
s32 sceLocationOpen(vm::ptr<u8> handle, SceLocationLocationMethod lmethod, SceLocationHeadingMethod hmethod)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationClose(u8 handle)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationReopen(u8 handle, SceLocationLocationMethod lmethod, SceLocationHeadingMethod hmethod)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
s32 sceLocationGetMethod(u8 handle, vm::ptr<s32> lmethod, vm::ptr<s32> hmethod)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationGetLocation(u8 handle, vm::ptr<SceLocationLocationInfo> linfo)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationCancelGetLocation(u8 handle)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationStartLocationCallback(u8 handle, u32 distance, vm::ptr<SceLocationLocationInfoCallback> callback, vm::ptr<void> userdata)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationStopLocationCallback(u8 handle)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationGetHeading(u8 handle, vm::ptr<SceLocationHeadingInfo> hinfo)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationStartHeadingCallback(u8 handle, u32 difference, vm::ptr<SceLocationHeadingInfoCallback> callback, vm::ptr<void> userdata)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationStopHeadingCallback(u8 handle)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationConfirm(u8 handle)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
s32 sceLocationConfirmGetStatus(u8 handle, vm::ptr<s32> status)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
s32 sceLocationConfirmGetResult(u8 handle, vm::ptr<s32> result)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationConfirmAbort(u8 handle)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationGetPermission(u8 handle, vm::ptr<SceLocationPermissionInfo> info)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2015-06-21 01:04:01 +02:00
s32 sceLocationSetGpsEmulationFile(vm::ptr<char> filename)
2015-01-30 00:58:53 +01:00
{
fmt::throw_exception("Unimplemented" HERE);
2015-01-30 00:58:53 +01:00
}
2016-02-01 22:53:16 +01:00
#define REG_FUNC(nid, name) REG_FNID(SceLibLocation, nid, name)
2016-02-01 22:53:16 +01:00
DECLARE(arm_module_manager::SceLocation)("SceLibLocation", []()
{
2015-01-30 00:58:53 +01:00
REG_FUNC(0xDD271661, sceLocationOpen);
REG_FUNC(0x14FE76E8, sceLocationClose);
REG_FUNC(0xB1F55065, sceLocationReopen);
REG_FUNC(0x188CE004, sceLocationGetMethod);
REG_FUNC(0x15BC27C8, sceLocationGetLocation);
REG_FUNC(0x71503251, sceLocationCancelGetLocation);
REG_FUNC(0x12D1F0EA, sceLocationStartLocationCallback);
REG_FUNC(0xED378700, sceLocationStopLocationCallback);
REG_FUNC(0x4E9E5ED9, sceLocationGetHeading);
REG_FUNC(0x07D4DFE0, sceLocationStartHeadingCallback);
REG_FUNC(0x92E53F94, sceLocationStopHeadingCallback);
//REG_FUNC(0xE055BCF5, sceLocationSetHeapAllocator);
2015-01-30 00:58:53 +01:00
REG_FUNC(0xC895E567, sceLocationConfirm);
REG_FUNC(0x730FF842, sceLocationConfirmGetStatus);
REG_FUNC(0xFF016C13, sceLocationConfirmGetResult);
REG_FUNC(0xE3CBF875, sceLocationConfirmAbort);
REG_FUNC(0x482622C6, sceLocationGetPermission);
REG_FUNC(0xDE0A9EA4, sceLocationSetGpsEmulationFile);
//REG_FUNC(0x760D08FF, sceLocationConfirmSetMessage);
});