mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Update soc_u.cpp
This commit is contained in:
		
							parent
							
								
									5d123144ff
								
							
						
					
					
						commit
						4ded138139
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -780,10 +780,6 @@ static void Connect(Interface* self) { | ||||||
| 
 | 
 | ||||||
| static void InitializeSockets(Interface* self) { | static void InitializeSockets(Interface* self) { | ||||||
| // TODO(Subv): Implement
 | // TODO(Subv): Implement
 | ||||||
| #ifdef _WIN32 |  | ||||||
|     WSADATA data; |  | ||||||
|     WSAStartup(MAKEWORD(2, 2), &data); |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
|     u32* cmd_buffer = Kernel::GetCommandBuffer(); |     u32* cmd_buffer = Kernel::GetCommandBuffer(); | ||||||
|     cmd_buffer[0] = IPC::MakeHeader(1, 1, 0); |     cmd_buffer[0] = IPC::MakeHeader(1, 1, 0); | ||||||
|  | @ -900,10 +896,18 @@ const Interface::FunctionInfo FunctionTable[] = { | ||||||
| 
 | 
 | ||||||
| SOC_U::SOC_U() { | SOC_U::SOC_U() { | ||||||
|     Register(FunctionTable); |     Register(FunctionTable); | ||||||
|  | 
 | ||||||
|  | #ifdef _WIN32 | ||||||
|  |     WSADATA data; | ||||||
|  |     WSAStartup(MAKEWORD(2, 2), &data); | ||||||
|  | #endif | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| SOC_U::~SOC_U() { | SOC_U::~SOC_U() { | ||||||
|     CleanupSockets(); |     CleanupSockets(); | ||||||
|  | #ifdef _WIN32 | ||||||
|  |     WSACleanup(); | ||||||
|  | #endif | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| } // namespace SOC
 | } // namespace SOC
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue