i'm working on a Smart Directx Hook that should render its things only when game is not in main menu / paused game / with console open, and i'm looking for some way to detect this knowing what directx functions are called.
My first idea was to get a crc from every loaded texture, and knowing what textures are drawed i could know what was the game state.
Only problem is that this method is not reliable: the game i hook ( Fallout : New Vegas / Fallout 3 ) it's a very modded game, and also the loading screens can be changed, and i want to be able to support mods without breaking the game state detection.
Are there other ways to accomplish this?
Google didn't help me