Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop loading on duplicate definition from same mod #58542

Merged
merged 1 commit into from Jun 19, 2022

Conversation

anothersimulacrum
Copy link
Contributor

Summary

None

Purpose of change

Make it easier to determine when a duplicate entry is the source of an error.

Describe the solution

Halt loading the game when a duplicate entry is found, instead of having a debugmsg and continuing.

Testing

Copy the definition of the item. See the game does not load, and gives an appropriate error.

Don't allow the game to complete loading if an object is defined twice,
as objects being defined twice is likely to cause more errors.
@anothersimulacrum anothersimulacrum added Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style [C++] Changes (can be) made in C++. Previously named `Code` labels Jun 19, 2022
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jun 19, 2022
@dseguin dseguin merged commit 91fd32c into CleverRaven:master Jun 19, 2022
@anothersimulacrum anothersimulacrum deleted the throw-dupes branch June 20, 2022 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants