forked from DC-SWAT/DreamShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.h
More file actions
62 lines (41 loc) · 1.06 KB
/
Copy pathsettings.h
File metadata and controls
62 lines (41 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* \file list.h
* \brief DreamShell settings
* \date 2016
* \author SWAT www.dc-swat.ru
*/
#ifndef _DS_SETTINGS_H
#define _DS_SETTINGS_H
#include <kos.h>
typedef struct VideoSettings {
/* Native video mode */
vid_mode_t mode;
/* Bits per pixel */
int bpp;
/* Screen texture size and filter */
int tex_width;
int tex_height;
int tex_filter; /* -1 (auto) */
// Virtual screen size
int virt_width;
int virt_height;
int reserved[16];
} VideoSettings_t;
typedef struct Settings {
/* Core version */
uint32 version;
/* Root directory with resources (leave empty for auto detect) */
char root[MAX_FN_LEN / 2];
/* Default startup lua script path (without root) or console/lua script content */
char startup[MAX_FN_LEN / 2];
/* Default app name */
char app[64];
/* Video */
VideoSettings_t video;
} Settings_t;
Settings_t *GetSettings();
void SetSettings(Settings_t *settings);
void ResetSettings();
int LoadSettings();
int SaveSettings();
#endif /* _DS_SETTINGS_H */