mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 22:00:05 +00:00 
			
		
		
		
	Merge pull request #4315 from FearlessTobi/port-1332
WebService: Backport review comments from yuzu-emu/yuzu#1332
This commit is contained in:
		
						commit
						11729eafe1
					
				
					 21 changed files with 42 additions and 52 deletions
				
			
		|  | @ -445,7 +445,8 @@ create_target_directory_groups(core) | |||
| target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core) | ||||
| target_link_libraries(core PUBLIC Boost::boost PRIVATE cryptopp fmt open_source_archives) | ||||
| if (ENABLE_WEB_SERVICE) | ||||
|     target_link_libraries(core PUBLIC json-headers web_service) | ||||
|     target_compile_definitions(core PRIVATE -DENABLE_WEB_SERVICE) | ||||
|     target_link_libraries(core PRIVATE json-headers web_service) | ||||
| endif() | ||||
| 
 | ||||
| if (ARCHITECTURE_x86_64) | ||||
|  |  | |||
|  | @ -82,7 +82,7 @@ u64 RegenerateTelemetryId() { | |||
|     return new_telemetry_id; | ||||
| } | ||||
| 
 | ||||
| bool VerifyLogin(std::string username, std::string token) { | ||||
| bool VerifyLogin(const std::string& username, const std::string& token) { | ||||
| #ifdef ENABLE_WEB_SERVICE | ||||
|     return WebService::VerifyLogin(Settings::values.web_api_url, username, token); | ||||
| #else | ||||
|  |  | |||
|  | @ -56,6 +56,6 @@ u64 RegenerateTelemetryId(); | |||
|  * @param func A function that gets exectued when the verification is finished | ||||
|  * @returns Future with bool indicating whether the verification succeeded | ||||
|  */ | ||||
| bool VerifyLogin(std::string username, std::string token); | ||||
| bool VerifyLogin(const std::string& username, const std::string& token); | ||||
| 
 | ||||
| } // namespace Core
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue