Moved application settings to settings_t struct
Since logfp, oldstyle, and prompt were application settings, rather than have them all as global vars, move them to a single global var, seperate from game state, as they aren't, technically, game state, but are application settings.
This commit is contained in:
parent
d23111daba
commit
7eaefce61d
5 changed files with 31 additions and 25 deletions
4
cheat.c
4
cheat.c
|
@ -10,10 +10,6 @@
|
|||
#include <stdbool.h>
|
||||
#include "advent.h"
|
||||
|
||||
FILE *logfp = NULL;
|
||||
bool oldstyle = false;
|
||||
bool prompt = true;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int ch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue