mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Fixed TAS movie serialization
This commit is contained in:
		
							parent
							
								
									ac37de10fc
								
							
						
					
					
						commit
						7ff985cef9
					
				
					 5 changed files with 39 additions and 37 deletions
				
			
		|  | @ -88,15 +88,11 @@ u16 GetResolutionScaleFactor() { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| void Save(std::ostream& stream) { | ||||
|     oarchive oa{stream}; | ||||
|     oa& Pica::g_state; | ||||
| } | ||||
| 
 | ||||
| void Load(std::istream& stream) { | ||||
|     iarchive ia{stream}; | ||||
|     ia& Pica::g_state; | ||||
|     // TODO: Flush/reset things
 | ||||
| template <class Archive> | ||||
| void serialize(Archive& ar, const unsigned int) { | ||||
|     ar& Pica::g_state; | ||||
| } | ||||
| 
 | ||||
| } // namespace VideoCore
 | ||||
| 
 | ||||
| SERIALIZE_IMPL(VideoCore) | ||||
|  |  | |||
|  | @ -62,7 +62,7 @@ void RequestScreenshot(void* data, std::function<void()> callback, | |||
| 
 | ||||
| u16 GetResolutionScaleFactor(); | ||||
| 
 | ||||
| void Save(std::ostream& stream); | ||||
| void Load(std::istream& stream); | ||||
| template <class Archive> | ||||
| void serialize(Archive& ar, const unsigned int file_version); | ||||
| 
 | ||||
| } // namespace VideoCore
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue