mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-11-04 12:34:39 +08:00 
			
		
		
		
	telemetry: Add field for RequiresSharedFont.
This commit is contained in:
		
							parent
							
								
									a621ab6853
								
							
						
					
					
						commit
						5c631ec9c5
					
				@ -75,6 +75,10 @@ void Initialize(Service::Interface* self) {
 | 
			
		||||
void GetSharedFont(Service::Interface* self) {
 | 
			
		||||
    IPC::RequestParser rp(Kernel::GetCommandBuffer(), 0x44, 0, 0); // 0x00440000
 | 
			
		||||
    IPC::RequestBuilder rb = rp.MakeBuilder(2, 2);
 | 
			
		||||
 | 
			
		||||
    // Log in telemetry if the game uses the shared font
 | 
			
		||||
    Core::Telemetry().AddField(Telemetry::FieldType::Session, "RequiresSharedFont", true);
 | 
			
		||||
 | 
			
		||||
    if (!shared_font_loaded) {
 | 
			
		||||
        LOG_ERROR(Service_APT, "shared font file missing - go dump it from your 3ds");
 | 
			
		||||
        rb.Push<u32>(-1); // TODO: Find the right error code
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user