mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	
						commit
						7e18bcf6e0
					
				
					 3 changed files with 21 additions and 1 deletions
				
			
		|  | @ -68,6 +68,18 @@ void GetBatteryChargeState(Service::Interface* self) { | |||
|     LOG_WARNING(Service_PTM, "(STUBBED) called"); | ||||
| } | ||||
| 
 | ||||
| void GetTotalStepCount(Service::Interface* self) { | ||||
|     u32* cmd_buff = Kernel::GetCommandBuffer(); | ||||
| 
 | ||||
|     // TODO: This function is only a stub,
 | ||||
|     // it returns 0 as the total step count
 | ||||
| 
 | ||||
|     cmd_buff[1] = RESULT_SUCCESS.raw; | ||||
|     cmd_buff[2] = 0; | ||||
| 
 | ||||
|     LOG_WARNING(Service_PTM, "(STUBBED) called"); | ||||
| } | ||||
| 
 | ||||
| void IsLegacyPowerOff(Service::Interface* self) { | ||||
|     u32* cmd_buff = Kernel::GetCommandBuffer(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -71,6 +71,14 @@ void GetBatteryLevel(Interface* self); | |||
|  */ | ||||
| void GetBatteryChargeState(Interface* self); | ||||
| 
 | ||||
| /**
 | ||||
|  * PTM::GetTotalStepCount service function | ||||
|  *  Outputs: | ||||
|  *      1 : Result of function, 0 on success, otherwise error code | ||||
|  *      2 : Output of function, * = total step count | ||||
|  */ | ||||
| void GetTotalStepCount(Interface* self); | ||||
| 
 | ||||
| /**
 | ||||
|  * PTM::IsLegacyPowerOff service function | ||||
|  *  Outputs: | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ const Interface::FunctionInfo FunctionTable[] = { | |||
|     {0x00090000, nullptr,               "GetPedometerState"}, | ||||
|     {0x000A0042, nullptr,               "GetStepHistoryEntry"}, | ||||
|     {0x000B00C2, nullptr,               "GetStepHistory"}, | ||||
|     {0x000C0000, nullptr,               "GetTotalStepCount"}, | ||||
|     {0x000C0000, GetTotalStepCount,     "GetTotalStepCount"}, | ||||
|     {0x000D0040, nullptr,               "SetPedometerRecordingMode"}, | ||||
|     {0x000E0000, nullptr,               "GetPedometerRecordingMode"}, | ||||
|     {0x000F0084, nullptr,               "GetStepHistoryAll"}, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue