mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-23 15:11:19 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user