Remove scripts for patches where content is not available. #2542
+222
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🍰 Pullrequest
This PR stops compiler from building scripts where the content is not available. For patch 1.12.1, this PR does nothing.
As this removes plenty of script files when building for lower patch, the file size difference between patch 1.12.1 mangosd and patch 1.6.1 mangosd is 495 kb.
Full 1.12.1 build on a 5800x:
Full 1.6.1 build on a 5800x:
If below patch 1.11, Naxxramas and Scourge Invasion will not build.
If below patch 1.9, AQ, War Effort and Omen will not build.
If below patch 1.8, Dragons of Nightmare will not build.
If below patch 1.7, AB and ZG will not build.
If below patch 1.6, BWL will not build.
All patches build successfully. No server crashes from my testing in game.
Proof
Issues
How2Test
Todo / Checklist