Skip to content

Soften HDCoreLib Dependencies - #56

Merged
UndeadZeratul merged 2 commits into
HDest-Community:mainfrom
UndeadZeratul:main
Aug 18, 2026
Merged

UndeadZeratul merged 2 commits into
HDest-Community:mainfrom
UndeadZeratul:main

Conversation

@UndeadZeratul

Copy link
Copy Markdown
Member

Completely forgot how widely used this library is, and to incur a hard dependency for 6? 7? lines of code seems unnecessary at best, so this adds a new Utility Struct that defines/exposes a few static helper methods to abstract away the direct call to HDCoreLib.log() and instead puts the newly added HDCoreLoggingService in front, assuming it's loaded.

Tested both with and without HDCoreLib running alongside HDBL without any hard crashes or VM Aborts.

Oh also the Micro-Cell getMagSprite() logic has been reverted until I can implement similar decouplings for more APIs

Currently only uses the new Logging helper methods, which in turn lazily fetch the new HDCoreLib LoggingService API.
Still need to reimplement this via a new service someday...
@UndeadZeratul
UndeadZeratul merged commit 55781c6 into HDest-Community:main Aug 18, 2026
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