This commit is contained in:
Your Name 2025-06-01 21:58:31 +03:00
parent 19f0b80394
commit b75523115a
25 changed files with 1672 additions and 14 deletions

25
src/parser.h Normal file
View 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