mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-11 07:37:53 +02:00
Refactor to store the initial governor state when gamemode is entered
Rather than when gamemoded is started. As see in Issue #52. A small refactor here to ensure things stay consistent, especially to stop storing a pointer from get_gov_state that might have had it's memory changed at some point, confusingly.
This commit is contained in:
@@ -33,16 +33,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* Store initial governor so we can use it again
|
||||
*/
|
||||
void update_initial_gov_state(void);
|
||||
|
||||
/**
|
||||
* Return the governer set in update_initial_gov_state
|
||||
*/
|
||||
const char *get_initial_governor(void);
|
||||
|
||||
/**
|
||||
* Update all governors to the given value. If this is NULL, restore the
|
||||
* initial governor.
|
||||
|
Reference in New Issue
Block a user