CAM: implement basic camera functions with a blank camera
This commit is contained in:
		| @@ -91,6 +91,21 @@ void Config::ReadValues() { | ||||
|     Settings::values.is_new_3ds = sdl2_config->GetBoolean("System", "is_new_3ds", false); | ||||
|     Settings::values.region_value = sdl2_config->GetInteger("System", "region_value", 1); | ||||
|  | ||||
|     // Camera | ||||
|     using namespace Service::CAM; | ||||
|     Settings::values.camera_name[OuterRightCamera] = | ||||
|         sdl2_config->Get("Camera", "camera_outer_right_name", "blank"); | ||||
|     Settings::values.camera_config[OuterRightCamera] = | ||||
|         sdl2_config->Get("Camera", "camera_outer_right_config", ""); | ||||
|     Settings::values.camera_name[InnerCamera] = | ||||
|         sdl2_config->Get("Camera", "camera_inner_name", "blank"); | ||||
|     Settings::values.camera_config[InnerCamera] = | ||||
|         sdl2_config->Get("Camera", "camera_inner_config", ""); | ||||
|     Settings::values.camera_name[OuterLeftCamera] = | ||||
|         sdl2_config->Get("Camera", "camera_outer_left_name", "blank"); | ||||
|     Settings::values.camera_config[OuterLeftCamera] = | ||||
|         sdl2_config->Get("Camera", "camera_outer_left_config", ""); | ||||
|  | ||||
|     // Miscellaneous | ||||
|     Settings::values.log_filter = sdl2_config->Get("Miscellaneous", "log_filter", "*:Info"); | ||||
|  | ||||
|   | ||||
| @@ -104,6 +104,22 @@ is_new_3ds = | ||||
| # 0: Japan, 1: USA (default), 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan | ||||
| region_value = | ||||
|  | ||||
| [Camera] | ||||
| # Which camera engine to use for the right outer camera | ||||
| # blank (default): a dummy camera that always returns black image | ||||
| camera_outer_right_name = | ||||
|  | ||||
| # A config string for the right outer camera. Its meaning is defined by the camera engine | ||||
| camera_outer_right_config = | ||||
|  | ||||
| # ... for the left outer camera | ||||
| camera_outer_left_name = | ||||
| camera_outer_left_config = | ||||
|  | ||||
| # ... for the inner camera | ||||
| camera_inner_name = | ||||
| camera_inner_config = | ||||
|  | ||||
| [Miscellaneous] | ||||
| # A filter which removes logs below a certain logging level. | ||||
| # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wwylele
					wwylele