Replaced nullptr's with empty functions

This commit is contained in:
purpasmart96 2014-09-20 18:29:09 -07:00
parent a9630a9d2b
commit 1bca92a0f4

View File

@ -51,6 +51,34 @@ void Enable(Service::Interface* self) {
WARN_LOG(KERNEL, "(STUBBED) called unk=0x%08X", unk);
}
void Finalize(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetAppletManInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetAppletInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetLastSignaledAppletId(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CountRegisteredApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void IsRegistered(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetAttribute(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void InquireNotification(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
u32 app_id = cmd_buff[2];
@ -59,6 +87,10 @@ void InquireNotification(Service::Interface* self) {
WARN_LOG(KERNEL, "(STUBBED) called app_id=0x%08X", app_id);
}
void SendParameter(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void ReceiveParameter(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
u32 app_id = cmd_buff[1];
@ -73,85 +105,345 @@ void ReceiveParameter(Service::Interface* self) {
WARN_LOG(KERNEL, "(STUBBED) called app_id=0x%08X, buffer_size=0x%08X", app_id, buffer_size);
}
void GlanceParameter(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CancelParameter(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void DebugFunc(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void MapProgramIdForDebug(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SetHomeMenuAppletIdForDebug(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetPreparationState(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SetPreparationState(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToStartApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PreloadLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void FinishPreloadingLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToStartLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToStartSystemApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToStartNewestHomeMenu(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void StartApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void WakeupApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CancelApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void StartLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void StartSystemApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void StartNewestHomeMenu(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void OrderToCloseApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToCloseApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToJumpToApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void JumpToApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToCloseLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToCloseSystemApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CloseApplication(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CloseLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CloseSystemApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void OrderToCloseSystemApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToJumpToHomeMenu(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void JumpToHomeMenu(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToLeaveHomeMenu(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void LeaveHomeMenu(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToLeaveResidentApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void LeaveResidentApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToDoApplicationJump(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void DoApplicationJump(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetProgramIdOnApplicationJump(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SendDeliverArg(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void ReceiveDeliverArg(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void LoadSysMenuArg(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void StoreSysMenuArg(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PreloadResidentApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void PrepareToStartResidentApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void StartResidentApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void CancelLibraryApplet(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SendDspSleep(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SendDspWakeUp(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void ReplySleepQuery(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void ReplySleepNotificationComplete(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SendCaptureBufferInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void ReceiveCaptureBufferInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SleepSystem(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void NotifyToWait(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetSharedFont(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetWirelessRebootInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void Wrap(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void Unwrap(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetProgramInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void Reboot(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetCaptureInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void AppletUtility(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void SetFatalErrDispMode(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void GetAppletProgramInfo(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
void HardwareResetAsync(Service::Interface* self) {
ERROR_LOG(KERNEL, "Unimplemented function");
}
const Interface::FunctionInfo FunctionTable[] = {
{0x00010040, GetLockHandle, "GetLockHandle"},
{0x00020080, Initialize, "Initialize"},
{0x00030040, Enable, "Enable"},
{0x00040040, nullptr, "Finalize"},
{0x00050040, nullptr, "GetAppletManInfo"},
{0x00060040, nullptr, "GetAppletInfo"},
{0x00070000, nullptr, "GetLastSignaledAppletId"},
{0x00080000, nullptr, "CountRegisteredApplet"},
{0x00090040, nullptr, "IsRegistered"},
{0x000A0040, nullptr, "GetAttribute"},
{0x000B0040, InquireNotification, "InquireNotification"},
{0x000C0104, nullptr, "SendParameter"},
{0x000D0080, ReceiveParameter, "ReceiveParameter"},
{0x000E0080, nullptr, "GlanceParameter"},
{0x000F0100, nullptr, "CancelParameter"},
{0x001000C2, nullptr, "DebugFunc"},
{0x001100C0, nullptr, "MapProgramIdForDebug"},
{0x00120040, nullptr, "SetHomeMenuAppletIdForDebug"},
{0x00130000, nullptr, "GetPreparationState"},
{0x00140040, nullptr, "SetPreparationState"},
{0x00150140, nullptr, "PrepareToStartApplication"},
{0x00160040, nullptr, "PreloadLibraryApplet"},
{0x00170040, nullptr, "FinishPreloadingLibraryApplet"},
{0x00180040, nullptr, "PrepareToStartLibraryApplet"},
{0x00190040, nullptr, "PrepareToStartSystemApplet"},
{0x001A0000, nullptr, "PrepareToStartNewestHomeMenu"},
{0x001B00C4, nullptr, "StartApplication"},
{0x001C0000, nullptr, "WakeupApplication"},
{0x001D0000, nullptr, "CancelApplication"},
{0x001E0084, nullptr, "StartLibraryApplet"},
{0x001F0084, nullptr, "StartSystemApplet"},
{0x00200044, nullptr, "StartNewestHomeMenu"},
{0x00210000, nullptr, "OrderToCloseApplication"},
{0x00220040, nullptr, "PrepareToCloseApplication"},
{0x00230040, nullptr, "PrepareToJumpToApplication"},
{0x00240044, nullptr, "JumpToApplication"},
{0x002500C0, nullptr, "PrepareToCloseLibraryApplet"},
{0x00260000, nullptr, "PrepareToCloseSystemApplet"},
{0x00270044, nullptr, "CloseApplication"},
{0x00280044, nullptr, "CloseLibraryApplet"},
{0x00290044, nullptr, "CloseSystemApplet"},
{0x002A0000, nullptr, "OrderToCloseSystemApplet"},
{0x002B0000, nullptr, "PrepareToJumpToHomeMenu"},
{0x002C0044, nullptr, "JumpToHomeMenu"},
{0x002D0000, nullptr, "PrepareToLeaveHomeMenu"},
{0x002E0044, nullptr, "LeaveHomeMenu"},
{0x002F0040, nullptr, "PrepareToLeaveResidentApplet"},
{0x00300044, nullptr, "LeaveResidentApplet"},
{0x00310100, nullptr, "PrepareToDoApplicationJump"},
{0x00320084, nullptr, "DoApplicationJump"},
{0x00330000, nullptr, "GetProgramIdOnApplicationJump"},
{0x00340084, nullptr, "SendDeliverArg"},
{0x00350080, nullptr, "ReceiveDeliverArg"},
{0x00360040, nullptr, "LoadSysMenuArg"},
{0x00370042, nullptr, "StoreSysMenuArg"},
{0x00380040, nullptr, "PreloadResidentApplet"},
{0x00390040, nullptr, "PrepareToStartResidentApplet"},
{0x003A0044, nullptr, "StartResidentApplet"},
{0x003B0040, nullptr, "CancelLibraryApplet"},
{0x003C0042, nullptr, "SendDspSleep"},
{0x003D0042, nullptr, "SendDspWakeUp"},
{0x003E0080, nullptr, "ReplySleepQuery"},
{0x003F0040, nullptr, "ReplySleepNotificationComplete"},
{0x00400042, nullptr, "SendCaptureBufferInfo"},
{0x00410040, nullptr, "ReceiveCaptureBufferInfo"},
{0x00420080, nullptr, "SleepSystem"},
{0x00430040, nullptr, "NotifyToWait"},
{0x00440000, nullptr, "GetSharedFont"},
{0x00450040, nullptr, "GetWirelessRebootInfo"},
{0x00460104, nullptr, "Wrap"},
{0x00470104, nullptr, "Unwrap"},
{0x00480100, nullptr, "GetProgramInfo"},
{0x00490180, nullptr, "Reboot"},
{0x004A0040, nullptr, "GetCaptureInfo"},
{0x004B00C2, nullptr, "AppletUtility"},
{0x004C0000, nullptr, "SetFatalErrDispMode"},
{0x004D0080, nullptr, "GetAppletProgramInfo"},
{0x004E0000, nullptr, "HardwareResetAsync"},
{0x00010040, GetLockHandle, "GetLockHandle"},
{0x00020080, Initialize, "Initialize"},
{0x00030040, Enable, "Enable"},
{0x00040040, Finalize, "Finalize"},
{0x00050040, GetAppletManInfo, "GetAppletManInfo"},
{0x00060040, GetAppletInfo, "GetAppletInfo"},
{0x00070000, GetLastSignaledAppletId, "GetLastSignaledAppletId"},
{0x00080000, CountRegisteredApplet, "CountRegisteredApplet"},
{0x00090040, IsRegistered, "IsRegistered"},
{0x000A0040, GetAttribute, "GetAttribute"},
{0x000B0040, InquireNotification, "InquireNotification"},
{0x000C0104, SendParameter, "SendParameter"},
{0x000D0080, ReceiveParameter, "ReceiveParameter"},
{0x000E0080, GlanceParameter, "GlanceParameter"},
{0x000F0100, CancelParameter, "CancelParameter"},
{0x001000C2, DebugFunc, "DebugFunc"},
{0x001100C0, MapProgramIdForDebug, "MapProgramIdForDebug"},
{0x00120040, SetHomeMenuAppletIdForDebug, "SetHomeMenuAppletIdForDebug"},
{0x00130000, GetPreparationState, "GetPreparationState"},
{0x00140040, SetPreparationState, "SetPreparationState"},
{0x00150140, PrepareToStartApplication, "PrepareToStartApplication"},
{0x00160040, PreloadLibraryApplet, "PreloadLibraryApplet"},
{0x00170040, FinishPreloadingLibraryApplet, "FinishPreloadingLibraryApplet"},
{0x00180040, PrepareToStartLibraryApplet, "PrepareToStartLibraryApplet"},
{0x00190040, PrepareToStartSystemApplet, "PrepareToStartSystemApplet"},
{0x001A0000, PrepareToStartNewestHomeMenu, "PrepareToStartNewestHomeMenu"},
{0x001B00C4, StartApplication, "StartApplication"},
{0x001C0000, WakeupApplication, "WakeupApplication"},
{0x001D0000, CancelApplication, "CancelApplication"},
{0x001E0084, StartLibraryApplet, "StartLibraryApplet"},
{0x001F0084, StartSystemApplet, "StartSystemApplet"},
{0x00200044, StartNewestHomeMenu, "StartNewestHomeMenu"},
{0x00210000, OrderToCloseApplication, "OrderToCloseApplication"},
{0x00220040, PrepareToCloseApplication, "PrepareToCloseApplication"},
{0x00230040, PrepareToJumpToApplication, "PrepareToJumpToApplication"},
{0x00240044, JumpToApplication, "JumpToApplication"},
{0x002500C0, PrepareToCloseLibraryApplet, "PrepareToCloseLibraryApplet"},
{0x00260000, PrepareToCloseSystemApplet, "PrepareToCloseSystemApplet"},
{0x00270044, CloseApplication, "CloseApplication"},
{0x00280044, CloseLibraryApplet, "CloseLibraryApplet"},
{0x00290044, CloseSystemApplet, "CloseSystemApplet"},
{0x002A0000, OrderToCloseSystemApplet, "OrderToCloseSystemApplet"},
{0x002B0000, PrepareToJumpToHomeMenu, "PrepareToJumpToHomeMenu"},
{0x002C0044, JumpToHomeMenu, "JumpToHomeMenu"},
{0x002D0000, PrepareToLeaveHomeMenu, "PrepareToLeaveHomeMenu"},
{0x002E0044, LeaveHomeMenu, "LeaveHomeMenu"},
{0x002F0040, PrepareToLeaveResidentApplet, "PrepareToLeaveResidentApplet"},
{0x00300044, LeaveResidentApplet, "LeaveResidentApplet"},
{0x00310100, PrepareToDoApplicationJump, "PrepareToDoApplicationJump"},
{0x00320084, DoApplicationJump, "DoApplicationJump"},
{0x00330000, GetProgramIdOnApplicationJump, "GetProgramIdOnApplicationJump"},
{0x00340084, SendDeliverArg, "SendDeliverArg"},
{0x00350080, ReceiveDeliverArg, "ReceiveDeliverArg"},
{0x00360040, LoadSysMenuArg, "LoadSysMenuArg"},
{0x00370042, StoreSysMenuArg, "StoreSysMenuArg"},
{0x00380040, PreloadResidentApplet, "PreloadResidentApplet"},
{0x00390040, PrepareToStartResidentApplet, "PrepareToStartResidentApplet"},
{0x003A0044, StartResidentApplet, "StartResidentApplet"},
{0x003B0040, CancelLibraryApplet, "CancelLibraryApplet"},
{0x003C0042, SendDspSleep, "SendDspSleep"},
{0x003D0042, SendDspWakeUp, "SendDspWakeUp"},
{0x003E0080, ReplySleepQuery, "ReplySleepQuery"},
{0x003F0040, ReplySleepNotificationComplete, "ReplySleepNotificationComplete"},
{0x00400042, SendCaptureBufferInfo, "SendCaptureBufferInfo"},
{0x00410040, ReceiveCaptureBufferInfo, "ReceiveCaptureBufferInfo"},
{0x00420080, SleepSystem, "SleepSystem"},
{0x00430040, NotifyToWait, "NotifyToWait"},
{0x00440000, GetSharedFont, "GetSharedFont"},
{0x00450040, GetWirelessRebootInfo, "GetWirelessRebootInfo"},
{0x00460104, Wrap, "Wrap"},
{0x00470104, Unwrap, "Unwrap"},
{0x00480100, GetProgramInfo, "GetProgramInfo"},
{0x00490180, Reboot, "Reboot"},
{0x004A0040, GetCaptureInfo, "GetCaptureInfo"},
{0x004B00C2, AppletUtility, "AppletUtility"},
{0x004C0000, SetFatalErrDispMode, "SetFatalErrDispMode"},
{0x004D0080, GetAppletProgramInfo, "GetAppletProgramInfo"},
{0x004E0000, HardwareResetAsync, "HardwareResetAsync"},
};
////////////////////////////////////////////////////////////////////////////////////////////////////