2022-08-19 08:58:50 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
2022-09-06 10:57:36 +00:00
|
|
|
namespace BrickByBrickFix {
|
|
|
|
/**
|
|
|
|
* @brief Deletes all broken BrickByBrick models that have invalid XML
|
|
|
|
*
|
|
|
|
* @return The number of BrickByBrick models that were truncated
|
|
|
|
*/
|
|
|
|
uint32_t TruncateBrokenBrickByBrickXml();
|
2022-08-19 08:58:50 +00:00
|
|
|
|
2022-09-06 10:57:36 +00:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
uint32_t UpdateBrickByBrickModelsToSd0();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Max size of an inflated sd0 zlib chunk
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
constexpr uint32_t MAX_SD0_CHUNK_SIZE = 1024 * 256;
|
2022-08-19 08:58:50 +00:00
|
|
|
};
|