darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
331 stars 29 forks source link

[PlayState] Add public available API to request game IsSuspended status by Game (or Game.Id) from other plugin #553

Open ashpynov opened 5 months ago

ashpynov commented 5 months ago

Extension name

PlayState

Feature Description

I would like to avoid interference in my extension 'BackToGame' with suspended games by PlayState. As soon as I try to deal only with game with 'IsRunning==True' I would like to have suspended games either Game.IsRunning = False or give public available method to check Suspended game.

Now I may achieve result using reflection and accessing private object PlayState::PlayState._playStateManager public method GetIsGameSuspended but this is non-stable solution due to privacy

Screenshots

No response