mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 12:41:55 +00:00 
			
		
		
		
	 8cd7526dae
			
		
	
	8cd7526dae
	
	
	
		
			
			Add brick by brick conversion commands with 2 parameters to tell the program what to do with the data. Add zlib -> sd0 conversion. Files look good at a glance but should be tested in game to ensure stability. Tests to come.
		
			
				
	
	
		
			22 lines
		
	
	
		
			541 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			541 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <cstdint>
 | |
| 
 | |
| class BrickByBrickFix {
 | |
| 	public:
 | |
| 		/**
 | |
| 		 * @brief Deletes all broken BrickByBrick models that have invalid XML
 | |
| 		 *
 | |
| 		 * @return The number of BrickByBrick models that were truncated
 | |
| 		 */
 | |
| 		static uint32_t TruncateBrokenBrickByBrickXml();
 | |
| 
 | |
| 		/**
 | |
| 		 * @brief Updates all BrickByBrick models in the database to be
 | |
| 		 * in the sd0 format as opposed to a zlib compressed format.
 | |
| 		 *
 | |
| 		 * @return The number of BrickByBrick models that were updated
 | |
| 		 */
 | |
| 		static uint32_t UpdateBrickByBrickModelsToSd0();
 | |
| };
 |