Skip to content

Standalone: Add and use GLFWException for standalone use#124

Merged
RedEpicness merged 1 commit intomasterfrom
feature/improve-standalone-glfw-error-handling
Feb 26, 2026
Merged

Standalone: Add and use GLFWException for standalone use#124
RedEpicness merged 1 commit intomasterfrom
feature/improve-standalone-glfw-error-handling

Conversation

@RedEpicness
Copy link
Contributor

The standalone version of UC simply throws a RuntimeException when failing to create a window. This PR exposes the underlying GLFW error in a more structured way, as opposed to only including it in the exception message. This is desired for better exception handling in the Essential installer.


package gg.essential.universal.standalone.glfw

@Suppress("MemberVisibilityCanBePrivate", "CanBeParameter")
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: I assume the intention here is to read these vals elsewhere? e.g. the installer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, the plan is for the installer to read these and act upon, more specifically the specific code received and also log the GLFW message.

@RedEpicness RedEpicness merged commit bb5390a into master Feb 26, 2026
1 check passed
@RedEpicness RedEpicness deleted the feature/improve-standalone-glfw-error-handling branch February 26, 2026 14:09
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.

2 participants