mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	HID: Fix crash when pressing a key when the emulator is stopped
This commit is contained in:
		
							parent
							
								
									c4208c1171
								
							
						
					
					
						commit
						0f69668fc6
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -30,6 +30,8 @@ static s16 next_circle_y = 0; | ||||||
|  * Gets a pointer to the PadData structure inside HID shared memory |  * Gets a pointer to the PadData structure inside HID shared memory | ||||||
|  */ |  */ | ||||||
| static inline PadData* GetPadData() { | static inline PadData* GetPadData() { | ||||||
|  |     if (g_shared_mem == nullptr) | ||||||
|  |         return nullptr; | ||||||
|     return reinterpret_cast<PadData*>(g_shared_mem->GetPointer().ValueOr(nullptr)); |     return reinterpret_cast<PadData*>(g_shared_mem->GetPointer().ValueOr(nullptr)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue