Skip to content

Conversation

@pirey0
Copy link
Contributor

@pirey0 pirey0 commented Oct 14, 2024

Adds a null check to ensure broken translation files don't break the game's localization.

Godots translation.cpp has no safety checks when calling TranslationServer::add_translation. (as of 4.2.2)
If for any reason a null-object is passed to it it will cause the translation server to break for the entire session.

@KANAjetzt KANAjetzt changed the title fixed broken TranslationServer when added translation fails to load fix: broken TranslationServer when added translation fails to load Oct 14, 2024
@KANAjetzt KANAjetzt added the 4.x label Oct 14, 2024
@KANAjetzt KANAjetzt added this to the 4.x - 7.0.0 milestone Oct 14, 2024
Copy link
Member

@KANAjetzt KANAjetzt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@KANAjetzt KANAjetzt added this pull request to the merge queue Oct 14, 2024
Merged via the queue into GodotModding:4.x with commit 6feaf59 Oct 14, 2024
1 check passed
KANAjetzt pushed a commit to KANAjetzt/godot-mod-loader that referenced this pull request Jan 25, 2025
…odotModding#414)

fixed broken TranslationServer when added translation fails to load
github-merge-queue bot pushed a commit that referenced this pull request Jan 26, 2025
#520)

fix: broken TranslationServer when added translation fails to load (#414)

fixed broken TranslationServer when added translation fails to load

Co-authored-by: Luca Martinelli <38705070+pirey0@users.noreply.github.com>
KANAjetzt added a commit that referenced this pull request Jan 26, 2025
#520)

fix: broken TranslationServer when added translation fails to load (#414)

fixed broken TranslationServer when added translation fails to load

Co-authored-by: Luca Martinelli <38705070+pirey0@users.noreply.github.com>
@ZackeryRSmith ZackeryRSmith added bug Something isn't working validation Feature to make things safe and predictable labels May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.x bug Something isn't working validation Feature to make things safe and predictable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants