DarkflameServer/dCommon/BrickByBrickFix.h
EmosewaMC 8cd7526dae Add Sd0Conversion
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.
2022-08-19 01:58:50 -07:00

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();
};