Skip to content

Conversation

@langfod
Copy link

@langfod langfod commented Jan 25, 2026

previous change appears to cause CTD's for custom derived IMenu classes just on 1.5.97 (1.6.1170 was fine)

With reversion RefreshPlatform via IMenu appears to be find on 1.5.97 and 1.6.1170.

  • added uiStr null guard

Copilot AI review requested due to automatic review settings January 25, 2026 18:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Reworks IMenu::RefreshPlatform() to avoid a version-specific crash (CTD) affecting custom-derived IMenu classes on Skyrim 1.5.97, while keeping behavior working on 1.6.1170.

Changes:

  • Replaces the relocation-based call to the game’s IMenu::RefreshPlatform with an in-library implementation that updates Scaleform platform state and cursor behavior.
  • Adds a null-guard for InterfaceStrings::GetSingleton() before using cursorMenu.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant