Remove user interference

-Add back in mariadb build jobs so i dont nuke others systems
- Remove all user interference and consolidate work into one command since 1 depends on the next.
This commit is contained in:
EmosewaMC
2022-10-16 20:55:16 -07:00
parent 520bddecc3
commit 98e099cdbc
4 changed files with 24 additions and 41 deletions

View File

@@ -208,19 +208,17 @@ int main(int argc, char** argv) {
if (argc == 3 && strcmp(argv[1], "--brick-by-brick") == 0) {
// Truncates invalid model lxfml from the database and
// removes their respective models from the database.
if (strcmp(argv[2], "TruncateBrokenModels") == 0) {
uint32_t numberOfTruncatedModels = BrickByBrickFix::TruncateBrokenBrickByBrickXml();
Game::logger->Log("MasterServer", "%i models were truncated from the database.", numberOfTruncatedModels);
} else if (strcmp(argv[2], "UpdateOldModels") == 0) {
// Updates old Brick-by-Brick models to use sd0 compression
// as opposed to zlib compression
if (strcmp(argv[2], "RemoveBrokenBuilds") == 0) {
uint32_t numberOfUpdatedModels = BrickByBrickFix::UpdateBrickByBrickModelsToSd0();
Game::logger->Log("MasterServer", "%i models were updated from zlib to sd0.", numberOfUpdatedModels);
uint32_t numberOfTruncatedModels = BrickByBrickFix::TruncateBrokenBrickByBrickXml();
Game::logger->Log("MasterServer", "%i models were truncated from the database.", numberOfTruncatedModels);
} else {
Game::logger->Log(
"MasterServer", "Invalid brick-by-brick command <%s>."
"Valid commands are TruncateBrokenModels and UpdateOldModels", argv[2]);
"Valid command is RemoveBrokenBuilds", argv[2]);
}
// Shutdown server after running the command.
FinalizeShutdown();
}