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:
Marc Di Luzio
2018-05-15 16:28:33 +01:00
parent d9072607d9
commit 1c38a6047e
5 changed files with 31 additions and 41 deletions

View File

@@ -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.