Fixed issues with crashing

This commit is contained in:
purpasmart96 2014-09-20 21:26:58 -07:00
parent 1bca92a0f4
commit e833e47e04

View File

@ -52,31 +52,45 @@ void Enable(Service::Interface* self) {
}
void Finalize(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetAppletManInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetAppletInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetLastSignaledAppletId(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CountRegisteredApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void IsRegistered(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetAttribute(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void InquireNotification(Service::Interface* self) {
@ -88,7 +102,9 @@ void InquireNotification(Service::Interface* self) {
}
void SendParameter(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void ReceiveParameter(Service::Interface* self) {
@ -106,263 +122,393 @@ void ReceiveParameter(Service::Interface* self) {
}
void GlanceParameter(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CancelParameter(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void DebugFunc(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void MapProgramIdForDebug(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SetHomeMenuAppletIdForDebug(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetPreparationState(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SetPreparationState(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToStartApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PreloadLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void FinishPreloadingLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToStartLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToStartSystemApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToStartNewestHomeMenu(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void StartApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void WakeupApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CancelApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void StartLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void StartSystemApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void StartNewestHomeMenu(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void OrderToCloseApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToCloseApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToJumpToApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void JumpToApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToCloseLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToCloseSystemApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CloseApplication(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CloseLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CloseSystemApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void OrderToCloseSystemApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToJumpToHomeMenu(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void JumpToHomeMenu(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToLeaveHomeMenu(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void LeaveHomeMenu(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToLeaveResidentApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void LeaveResidentApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToDoApplicationJump(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void DoApplicationJump(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetProgramIdOnApplicationJump(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SendDeliverArg(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void ReceiveDeliverArg(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void LoadSysMenuArg(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void StoreSysMenuArg(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PreloadResidentApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void PrepareToStartResidentApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void StartResidentApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void CancelLibraryApplet(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SendDspSleep(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SendDspWakeUp(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void ReplySleepQuery(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void ReplySleepNotificationComplete(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SendCaptureBufferInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void ReceiveCaptureBufferInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SleepSystem(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void NotifyToWait(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetSharedFont(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetWirelessRebootInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void Wrap(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void Unwrap(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetProgramInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void Reboot(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetCaptureInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void AppletUtility(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void SetFatalErrDispMode(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void GetAppletProgramInfo(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
void HardwareResetAsync(Service::Interface* self) {
u32* cmd_buff = Service::GetCommandBuffer();
ERROR_LOG(KERNEL, "Unimplemented function");
cmd_buff[1] = 0; // No error
}
const Interface::FunctionInfo FunctionTable[] = {