2019-05-18 00:20:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct amvideo_config {
|
|
|
|
bool enable;
|
|
|
|
};
|
|
|
|
|
2019-09-04 17:43:15 +00:00
|
|
|
struct dns_config {
|
|
|
|
bool enable;
|
2019-09-07 17:49:04 +00:00
|
|
|
wchar_t router[128];
|
2019-09-04 17:43:15 +00:00
|
|
|
wchar_t startup[128];
|
|
|
|
wchar_t billing[128];
|
|
|
|
wchar_t aimedb[128];
|
|
|
|
};
|
|
|
|
|
2019-05-18 00:20:38 +00:00
|
|
|
struct hwmon_config {
|
|
|
|
bool enable;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct misc_config {
|
|
|
|
bool enable;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct nusec_config {
|
|
|
|
bool enable;
|
|
|
|
char keychip_id[16];
|
|
|
|
char game_id[4];
|
|
|
|
char platform_id[4];
|
|
|
|
uint8_t region;
|
|
|
|
uint8_t system_flag;
|
|
|
|
uint32_t subnet;
|
|
|
|
wchar_t billing_ca[MAX_PATH];
|
|
|
|
wchar_t billing_pub[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
2019-08-20 22:44:47 +00:00
|
|
|
struct pcbid_config {
|
|
|
|
bool enable;
|
|
|
|
wchar_t serial_no[17];
|
|
|
|
};
|
|
|
|
|
2019-05-18 00:20:38 +00:00
|
|
|
struct vfs_config {
|
|
|
|
bool enable;
|
|
|
|
wchar_t amfs[MAX_PATH];
|
|
|
|
wchar_t appdata[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct nu_config {
|
|
|
|
struct amvideo_config amvideo;
|
2019-09-04 17:43:15 +00:00
|
|
|
struct dns_config dns;
|
2019-05-18 00:20:38 +00:00
|
|
|
struct hwmon_config hwmon;
|
|
|
|
struct misc_config misc;
|
|
|
|
struct nusec_config nusec;
|
|
|
|
struct vfs_config vfs;
|
|
|
|
};
|
|
|
|
|
2019-08-30 22:46:57 +00:00
|
|
|
struct alls_config {
|
|
|
|
struct amvideo_config amvideo;
|
2019-09-04 17:43:15 +00:00
|
|
|
struct dns_config dns;
|
2019-08-30 22:46:57 +00:00
|
|
|
struct hwmon_config hwmon;
|
|
|
|
struct misc_config misc;
|
|
|
|
struct pcbid_config pcbid;
|
|
|
|
struct nusec_config nusec;
|
|
|
|
struct vfs_config vfs;
|
|
|
|
};
|
|
|
|
|
|
|
|
void alls_config_load(struct alls_config *cfg, const wchar_t *filename);
|
|
|
|
void nu_config_load(struct nu_config *cfg, const wchar_t *filename);
|
|
|
|
|
2019-05-18 00:20:38 +00:00
|
|
|
void amvideo_config_load(struct amvideo_config *cfg, const wchar_t *filename);
|
2019-09-04 17:43:15 +00:00
|
|
|
void dns_config_load(struct dns_config *cfg, const wchar_t *filename);
|
2019-05-18 00:20:38 +00:00
|
|
|
void hwmon_config_load(struct hwmon_config *cfg, const wchar_t *filename);
|
|
|
|
void misc_config_load(struct misc_config *cfg, const wchar_t *filename);
|
|
|
|
void nusec_config_load(struct nusec_config *cfg, const wchar_t *filename);
|
2019-08-20 22:44:47 +00:00
|
|
|
void pcbid_config_load(struct pcbid_config *cfg, const wchar_t *filename);
|
2019-05-18 00:20:38 +00:00
|
|
|
void vfs_config_load(struct vfs_config *cfg, const wchar_t *filename);
|