-
Notifications
You must be signed in to change notification settings - Fork 233
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
Find references crash fix #1947
base: master
Are you sure you want to change the base?
Conversation
Move check for language to only be done on bytecode version 16 and up. See https://github.com/UnderminersTeam/UndertaleModTool/wiki/Bytecode-version-differences. Fixes UnderminersTeam#1946.
Download the artifacts for this pull request here: GUI:
CLI: |
UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMethodsMap.cs
Outdated
Show resolved
Hide resolved
dialog = new(data, results); | ||
dialog.Show(); | ||
} | ||
catch (Exception ex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we somehow trickle the exception type further instead of just having a catchall?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocking accidental merge, core dev can dismiss later if my above comment ends up being void
Description
Fixes #1946 by only checking language for bytecode 16 and above games.
Based on https://github.com/UnderminersTeam/UndertaleModTool/wiki/Bytecode-version-differences.
Also adds error handling to all functions which use GetReferencesOfObject so if something similar happens again it won't cause the tool to crash.
Caveats
Notes
Replaces #1942.
Thanks to @maxiterr1 for bringing this to my attention.