Skip to content
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

ModDLL & Linux hsGD3DeviceSelector fixes #1596

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Jun 30, 2024

  • There's a static initializer ordering issue that sometimes crops up with the hsG3DDeviceSelector Device Enumerator vector on Linux which causes crashes (not that there's much of a client to crash at the moment). Easy enough to change the vector to a function static rather than a global static to work around the problem.

  • Support loading ModDLLs on Linux and macOS using dlopen and dlsym.

Copy link
Contributor

@dgelessus dgelessus left a comment

Choose a reason for hiding this comment

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

Hooray, I no longer need to manually patch hsG3DDeviceSelector every time I test on Linux 😄

Sources/Plasma/Apps/plClient/plClient.cpp Outdated Show resolved Hide resolved
Sources/Plasma/Apps/plClient/plClient.cpp Outdated Show resolved Hide resolved
Sources/Plasma/Apps/plClient/plClient.cpp Outdated Show resolved Hide resolved
@Hoikas
Copy link
Member

Hoikas commented Jul 2, 2024

The last two commits should probably be in separate PRs.

@dpogue
Copy link
Member Author

dpogue commented Jul 2, 2024

The last two commits should probably be in separate PRs.

Split to #1597

@dpogue dpogue changed the title ModDLL & minor CI fixes ModDLL & Linux hsGD3DeviceSelector fixes Jul 2, 2024
@dpogue dpogue merged commit 04c72ac into H-uru:master Jul 2, 2024
17 checks passed
@dpogue dpogue deleted the mod-fixes branch July 2, 2024 23:32
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.

3 participants