-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathsettings.h
More file actions
55 lines (48 loc) · 1.47 KB
/
Copy pathsettings.h
File metadata and controls
55 lines (48 loc) · 1.47 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
#define APOLLO_VERSION "2.3.2" //Apollo PS4 version (about menu)
#define APOLLO_PLATFORM "PS4" //Apollo platform
#define MENU_TITLE_OFF 45 //Offset of menu title text from menu mini icon
#define MENU_ICON_OFF 105 //X Offset to start printing menu mini icon
#define MENU_ANI_MAX 0x80 //Max animation number
#define MENU_SPLIT_OFF 400 //Offset from left of sub/split menu to start drawing
#define OPTION_ITEM_OFF 1495 //Offset from left of settings item/value
enum app_option_type
{
APP_OPTION_NONE,
APP_OPTION_BOOL,
APP_OPTION_LIST,
APP_OPTION_INC,
APP_OPTION_CALL,
};
typedef struct
{
const char * name;
const char * * options;
enum app_option_type type;
uint8_t spacer;
uint8_t * value;
void(*callback)(int);
} menu_option_t;
typedef struct
{
char app_name[8];
char app_ver[8];
uint8_t music;
uint8_t doSort;
uint8_t doAni;
uint8_t update;
uint8_t usb_dev;
uint8_t online_opt;
uint8_t dbglog;
uint32_t user_id;
uint64_t psid[2];
uint64_t account_id;
char save_db[256];
char ftp_url[512];
} app_config_t;
extern menu_option_t menu_options[];
extern app_config_t apollo_config;
void music_callback(int sel);
void update_callback(int sel);
int get_firmware_version(void);
int save_xml_owner(const char *xmlfile);
int get_xml_owners(const char *xmlfile, int cmd, char*** nam, char*** val);