New-Project-Final-Final-WIP / HeadlessTweaks

A ResoniteModLoader mod for Resonite. Adds some nice to have features to headless clients
MIT License
14 stars 3 forks source link

Use a sturdier headless check #12

Closed BlueCyro closed 11 months ago

BlueCyro commented 11 months ago

I noticed that a type check was being used, whereas checking the provided SystemInfo class should be more future-proof if something changes.

BlueCyro commented 11 months ago

Hold up, made an oopsie

BlueCyro commented 11 months ago

There we are, StandaloneSystemInfo should avoid the headless reference before we check if we're on a headless.

badhaloninja commented 11 months ago

StandaloneSystemInfo will always return Headless, it's the headless specific ISystemInfo class This could be properly implemented here by checking Engine.SystemInfo after "on engine init" but I won't be doing that right now