Nah, you just open source it in a broken state without anything that had separate licensing, so nobody is happy and the law is followed.
> so nobody is happy and the law is followed.
An outcome so common they invented a word for it: https://en.wikipedia.org/wiki/Malicious_compliance
This would be a way better outcome than the current default. I've even seen this suggested before [1].
If game-specific logic is not public, information needed for reverse engineering could be completely missing, but if game-specific logic is available plus the names of the missing libraries, reconstruction of the game should be possible eventually.
[1] https://drewdevault.com/blog/Open-sourcing-video-games/ (See "What if I don’t completely own my game?")