UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

The wrong padding loading warning uses `SubmitMessage()`.

Open VladiStep opened this issue 1 year ago • 0 comments

Describe the bug

When there is a file length mismatch on game loading, there's a "WARNING: File specified length expectedLength, but read only length (diff padding?)". But it is written using SubmitMessage() instead of SubmitWarning().

I suppose it's because SubmitWarning() throws an IOException if the WarningHandler is not present. Then, it's behavior also should be changed.

Reproducing steps

.

Setup Details

  1. UTMT version - https://github.com/UnderminersTeam/UndertaleModTool/commit/caf04126f273b57bb2200b8739bb9d57e25d8f92

VladiStep avatar Oct 29 '24 14:10 VladiStep