mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	camera: migrate logging macros
This commit is contained in:
		
							parent
							
								
									6e410dcef5
								
							
						
					
					
						commit
						3cb91338e9
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -25,7 +25,7 @@ std::unique_ptr<CameraInterface> CreateCamera(const std::string& name, const std
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    if (name != "blank") {
 | 
			
		||||
        LOG_ERROR(Service_CAM, "Unknown camera \"%s\"", name.c_str());
 | 
			
		||||
        NGLOG_ERROR(Service_CAM, "Unknown camera {}", name);
 | 
			
		||||
    }
 | 
			
		||||
    return std::make_unique<BlankCamera>();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -39,7 +39,7 @@ std::unique_ptr<CameraInterface> CreateCameraPreview(const std::string& name,
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    if (name != "blank") {
 | 
			
		||||
        LOG_ERROR(Service_CAM, "Unknown camera \"%s\"", name.c_str());
 | 
			
		||||
        NGLOG_ERROR(Service_CAM, "Unknown camera {}", name);
 | 
			
		||||
    }
 | 
			
		||||
    return std::make_unique<BlankCamera>();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ public:
 | 
			
		|||
     * @param flip The image flip to apply
 | 
			
		||||
     * @returns a unique_ptr to the created camera object.
 | 
			
		||||
     * Note: The default implementation for this is to call Create(). Derived classes may have other
 | 
			
		||||
     *       Implementations. For example, A dialog may be used instead of LOG_ERROR when error
 | 
			
		||||
     *       Implementations. For example, A dialog may be used instead of NGLOG_ERROR when error
 | 
			
		||||
     * occurs.
 | 
			
		||||
     */
 | 
			
		||||
    virtual std::unique_ptr<CameraInterface> CreatePreview(const std::string& config, int width,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue