mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	svc: Move ResetType enum to the kernel event header
This commit is contained in:
		@@ -434,8 +434,8 @@ void Init() {
 | 
			
		||||
    cpu_percent = 0;
 | 
			
		||||
 | 
			
		||||
    // TODO(bunnei): Check if these are created in Initialize or on APT process startup.
 | 
			
		||||
    notification_event = Kernel::Event::Create(ResetType::OneShot, "APT_U:Notification");
 | 
			
		||||
    parameter_event = Kernel::Event::Create(ResetType::OneShot, "APT_U:Start");
 | 
			
		||||
    notification_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "APT_U:Notification");
 | 
			
		||||
    parameter_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "APT_U:Start");
 | 
			
		||||
 | 
			
		||||
    next_parameter.signal = static_cast<u32>(SignalType::AppJustStarted);
 | 
			
		||||
    next_parameter.destination_id = 0x300;
 | 
			
		||||
 
 | 
			
		||||
@@ -457,7 +457,7 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
// Interface class
 | 
			
		||||
 | 
			
		||||
Interface::Interface() {
 | 
			
		||||
    semaphore_event = Kernel::Event::Create(ResetType::OneShot, "DSP_DSP::semaphore_event");
 | 
			
		||||
    semaphore_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "DSP_DSP::semaphore_event");
 | 
			
		||||
    read_pipe_count = 0;
 | 
			
		||||
 | 
			
		||||
    Register(FunctionTable);
 | 
			
		||||
 
 | 
			
		||||
@@ -138,7 +138,7 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
// Interface class
 | 
			
		||||
 | 
			
		||||
Interface::Interface() {
 | 
			
		||||
    handle_event = Kernel::Event::Create(ResetType::OneShot, "NWM_UDS::handle_event");
 | 
			
		||||
    handle_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "NWM_UDS::handle_event");
 | 
			
		||||
 | 
			
		||||
    Register(FunctionTable);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,7 @@ static void GetProcSemaphore(Service::Interface* self) {
 | 
			
		||||
    u32* cmd_buff = Kernel::GetCommandBuffer();
 | 
			
		||||
 | 
			
		||||
    // TODO(bunnei): Change to a semaphore once these have been implemented
 | 
			
		||||
    event_handle = Kernel::Event::Create(ResetType::OneShot, "SRV:Event");
 | 
			
		||||
    event_handle = Kernel::Event::Create(Kernel::ResetType::OneShot, "SRV:Event");
 | 
			
		||||
    event_handle->Clear();
 | 
			
		||||
 | 
			
		||||
    cmd_buff[1] = 0; // No error
 | 
			
		||||
 
 | 
			
		||||
@@ -424,7 +424,7 @@ const Interface::FunctionInfo FunctionTable[] = {
 | 
			
		||||
// Interface class
 | 
			
		||||
 | 
			
		||||
Interface::Interface() {
 | 
			
		||||
    completion_event = Kernel::Event::Create(ResetType::OneShot, "Y2R:Completed");
 | 
			
		||||
    completion_event = Kernel::Event::Create(Kernel::ResetType::OneShot, "Y2R:Completed");
 | 
			
		||||
    std::memset(&conversion, 0, sizeof(conversion));
 | 
			
		||||
 | 
			
		||||
    Register(FunctionTable);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user