2019-05-18 02:20:38 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct amvideo_config {
|
|
|
|
bool enable;
|
|
|
|
};
|
|
|
|
|
2019-10-15 05:18:18 +02:00
|
|
|
struct clock_config {
|
|
|
|
bool timezone;
|
|
|
|
bool timewarp;
|
|
|
|
bool writeable;
|
|
|
|
};
|
|
|
|
|
2019-09-04 19:43:15 +02:00
|
|
|
struct dns_config {
|
|
|
|
bool enable;
|
2019-09-07 19:49:04 +02:00
|
|
|
wchar_t router[128];
|
2019-09-04 19:43:15 +02:00
|
|
|
wchar_t startup[128];
|
|
|
|
wchar_t billing[128];
|
|
|
|
wchar_t aimedb[128];
|
|
|
|
};
|
|
|
|
|
2019-05-18 02:20:38 +02:00
|
|
|
struct hwmon_config {
|
|
|
|
bool enable;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct misc_config {
|
|
|
|
bool enable;
|
|
|
|
};
|
|
|
|
|
2019-11-02 18:28:55 +01:00
|
|
|
struct netenv_config {
|
|
|
|
bool enable;
|
|
|
|
uint8_t addr_suffix;
|
|
|
|
uint8_t router_suffix;
|
|
|
|
uint8_t mac_addr[6];
|
|
|
|
};
|
|
|
|
|
2019-05-18 02:20:38 +02:00
|
|
|
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-21 00:44:47 +02:00
|
|
|
struct pcbid_config {
|
|
|
|
bool enable;
|
|
|
|
wchar_t serial_no[17];
|
|
|
|
};
|
|
|
|
|
2019-05-18 02:20:38 +02:00
|
|
|
struct vfs_config {
|
|
|
|
bool enable;
|
|
|
|
wchar_t amfs[MAX_PATH];
|
|
|
|
wchar_t appdata[MAX_PATH];
|
|
|
|
};
|
|
|
|
|
2019-11-03 15:52:33 +01:00
|
|
|
struct platform_config {
|
2019-08-31 00:46:57 +02:00
|
|
|
struct amvideo_config amvideo;
|
2019-10-15 05:18:18 +02:00
|
|
|
struct clock_config clock;
|
2019-09-04 19:43:15 +02:00
|
|
|
struct dns_config dns;
|
2019-08-31 00:46:57 +02:00
|
|
|
struct hwmon_config hwmon;
|
|
|
|
struct misc_config misc;
|
|
|
|
struct pcbid_config pcbid;
|
2019-11-02 18:28:55 +01:00
|
|
|
struct netenv_config netenv;
|
2019-08-31 00:46:57 +02:00
|
|
|
struct nusec_config nusec;
|
|
|
|
struct vfs_config vfs;
|
|
|
|
};
|
|
|
|
|
2019-11-03 15:52:33 +01:00
|
|
|
void platform_config_load(
|
|
|
|
struct platform_config *cfg,
|
|
|
|
const wchar_t *filename);
|
2019-08-31 00:46:57 +02:00
|
|
|
|
2019-05-18 02:20:38 +02:00
|
|
|
void amvideo_config_load(struct amvideo_config *cfg, const wchar_t *filename);
|
2019-10-15 05:18:18 +02:00
|
|
|
void clock_config_load(struct clock_config *cfg, const wchar_t *filename);
|
2019-09-04 19:43:15 +02:00
|
|
|
void dns_config_load(struct dns_config *cfg, const wchar_t *filename);
|
2019-05-18 02:20:38 +02: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);
|
2019-11-02 18:28:55 +01:00
|
|
|
void netenv_config_load(struct netenv_config *cfg, const wchar_t *filename);
|
2019-05-18 02:20:38 +02:00
|
|
|
void nusec_config_load(struct nusec_config *cfg, const wchar_t *filename);
|
2019-08-21 00:44:47 +02:00
|
|
|
void pcbid_config_load(struct pcbid_config *cfg, const wchar_t *filename);
|
2019-05-18 02:20:38 +02:00
|
|
|
void vfs_config_load(struct vfs_config *cfg, const wchar_t *filename);
|