mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 13:20:03 +00:00 
			
		
		
		
	Fix memory region serialization (OSK crash)
This commit is contained in:
		
							parent
							
								
									3278a4d7ef
								
							
						
					
					
						commit
						432ac24503
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -6,6 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <boost/icl/discrete_interval.hpp> | #include <boost/icl/discrete_interval.hpp> | ||||||
| #include "common/common_types.h" | #include "common/common_types.h" | ||||||
|  | #include "common/logging/log.h" | ||||||
| 
 | 
 | ||||||
| namespace boost::serialization { | namespace boost::serialization { | ||||||
| 
 | 
 | ||||||
|  | @ -25,7 +26,7 @@ void load(Archive& ar, boost::icl::discrete_interval<DomainT, Compare>& obj, | ||||||
|     ar >> lower; |     ar >> lower; | ||||||
|     ar >> upper; |     ar >> upper; | ||||||
|     ar >> bounds; |     ar >> bounds; | ||||||
|     obj = boost::icl::discrete_interval(upper, lower, boost::icl::interval_bounds(bounds)); |     obj = boost::icl::discrete_interval(lower, upper, boost::icl::interval_bounds(bounds)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| template <class Archive, class DomainT, ICL_COMPARE Compare> | template <class Archive, class DomainT, ICL_COMPARE Compare> | ||||||
|  |  | ||||||
|  | @ -26,7 +26,7 @@ void load(Archive& ar, boost::icl::interval_set<T>& set, const unsigned int file | ||||||
|     for (u64 i = 0; i < count; i++) { |     for (u64 i = 0; i < count; i++) { | ||||||
|         typename boost::icl::interval_set<T>::interval_type value{}; |         typename boost::icl::interval_set<T>::interval_type value{}; | ||||||
|         ar >> value; |         ar >> value; | ||||||
|         set.add(value); |         set += value; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue