mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	fixup! fixup! Add a service to announce multiplayer rooms to web service; Add the abiltiy to receive a list of all announced rooms from web service
This commit is contained in:
		
							parent
							
								
									1485093fd9
								
							
						
					
					
						commit
						93742f17b3
					
				
					 6 changed files with 35 additions and 32 deletions
				
			
		|  | @ -13,7 +13,7 @@ | |||
| 
 | ||||
| namespace Common { | ||||
| struct WebResult { | ||||
|     enum Code : u32 { | ||||
|     enum class Code : u32 { | ||||
|         Success, | ||||
|         InvalidURL, | ||||
|         CredentialsMissing, | ||||
|  | @ -39,7 +39,7 @@ struct Room { | |||
|         u64 game_id; | ||||
|     }; | ||||
|     std::string name; | ||||
|     std::string GUID; | ||||
|     std::string UID; | ||||
|     std::string owner; | ||||
|     std::string ip; | ||||
|     u16 port; | ||||
|  | @ -60,8 +60,8 @@ using RoomList = std::vector<Room>; | |||
| class Backend : NonCopyable { | ||||
| public: | ||||
|     virtual ~Backend() = default; | ||||
|     virtual void SetRoomInformation(const std::string& guid, const std::string& name, | ||||
|                                     const u16 port, const u32 max_player, const u32 net_version, | ||||
|     virtual void SetRoomInformation(const std::string& uid, const std::string& name, const u16 port, | ||||
|                                     const u32 max_player, const u32 net_version, | ||||
|                                     const bool has_password, const std::string& preferred_game, | ||||
|                                     const u64 preferred_game_id) = 0; | ||||
|     virtual void AddPlayer(const std::string& nickname, const MacAddress& mac_address, | ||||
|  | @ -79,7 +79,7 @@ public: | |||
| class NullBackend : public Backend { | ||||
| public: | ||||
|     ~NullBackend() = default; | ||||
|     void SetRoomInformation(const std::string& /*guid*/, const std::string& /*name*/, | ||||
|     void SetRoomInformation(const std::string& /*uid*/, const std::string& /*name*/, | ||||
|                             const u16 /*port*/, const u32 /*max_player*/, const u32 /*net_version*/, | ||||
|                             const bool /*has_password*/, const std::string& /*preferred_game*/, | ||||
|                             const u64 /*preferred_game_id*/) override {} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue