-
Notifications
You must be signed in to change notification settings - Fork 117
Catch errors to prevent broken menu on console view #1082
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
Conversation
…ld versions to prevent errors
|
I apologize for all the whitespace changes muddying the PR. I attempted to revert, but Visual Studio doesn't see any changes. LMK if you want me to take another crack at it. |
|
Not directly a fix; more like a stop ToyBox from going kaboom when using a controller. |
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.
The whitespace changes really made the diff annoying; after opening the files manually to take a look, it seems like the try/catch block is the only difference?
I don't have a SteamDeck and haven't really used Wrath with a Controller, so I'll just assume it really does fix the map issue. Other than the Mod.Log vs Mod.Debug it looks okay.
Considering Narria hasn't popped in yet, I'll assume she's still busy. I'll probably Cherry Pick the commit(s) into the currently Maintained Branch to merge the changes (since this PR is for the slightly outdated cabarius:main branch). Otherwise, it looks fine; thanks for the contribution.
As an afterthought: There's probably some Visual Studio settings that mess up the formatting on your side. I'll just reformat the file after merging so you don't need to mind that.
As another afterthought; if you want you can recreate the for the correct branch: xADDBx/ToyBox-RogueTrader@main...evandixon:ToyBox:fix-steam-deck-map and I can just merge there; whatever you prefer
| } | ||
| } | ||
| catch (Exception ex) { | ||
| Mod.Log("Exception in LocalMapBaseViewPatch.SetDrawResult: " + ex.ToString()); |
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.
If this is, as I assume, an error that will (always) happen in case ConsoleView is active then it's probably preferable to use Mod.Debug to prevent it from appearing in the average user log (to prevent log spam)
|
Merged in xADDBx#20; thanks for the contribution |
Fixesavoids #999, which is real annoying.A better solution would be to update UIUtilities to select the appropriate ConsoleView transforms instead of PCView. I poked around with that a little but concluded I don't know what I'm doing. I figure this is the safest and simplest solution to just fix the map.
Tested using a laptop with a Logitech Gamepad F310 that was able to repro the issue, though I'll put it through some real testing later on a steam deck.