first!
This commit is contained in:
parent
19f0b80394
commit
b75523115a
25 changed files with 1672 additions and 14 deletions
25
src/parser.h
Normal file
25
src/parser.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef _PARSER_H
|
||||
#define _PARSER_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define CONFIG_FILE "settings"
|
||||
|
||||
typedef struct {
|
||||
int fullscreen;
|
||||
int fullscreen_custom;
|
||||
int vsync;
|
||||
|
||||
int screen_w;
|
||||
int screen_h;
|
||||
|
||||
int sound_volume;
|
||||
int music_volume;
|
||||
|
||||
int saved_scene;
|
||||
} CONFIG;
|
||||
|
||||
FILE *OpenFile(const char *file, const char *mode);
|
||||
int ReadCfg(CONFIG *cfg);
|
||||
int WriteCfg(const CONFIG cfg);
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue