segatools/platform/config.h

90 lines
2.0 KiB
C
Raw Normal View History

#pragma once
#include <windows.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
struct amvideo_config {
bool enable;
};
2019-10-15 03:18:18 +00:00
struct clock_config {
bool timezone;
bool timewarp;
bool writeable;
};
2019-09-04 17:43:15 +00:00
struct dns_config {
bool enable;
wchar_t router[128];
2019-09-04 17:43:15 +00:00
wchar_t startup[128];
wchar_t billing[128];
wchar_t aimedb[128];
};
struct hwmon_config {
bool enable;
};
struct misc_config {
bool enable;
};
struct netenv_config {
bool enable;
uint8_t addr_suffix;
uint8_t router_suffix;
uint8_t mac_addr[6];
};
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];
};
struct pcbid_config {
bool enable;
wchar_t serial_no[17];
};
struct vfs_config {
bool enable;
wchar_t amfs[MAX_PATH];
wchar_t appdata[MAX_PATH];
};
struct platform_config {
2019-08-30 22:46:57 +00:00
struct amvideo_config amvideo;
2019-10-15 03:18:18 +00:00
struct clock_config clock;
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 netenv_config netenv;
2019-08-30 22:46:57 +00:00
struct nusec_config nusec;
struct vfs_config vfs;
};
void platform_config_load(
struct platform_config *cfg,
const wchar_t *filename);
2019-08-30 22:46:57 +00:00
void amvideo_config_load(struct amvideo_config *cfg, const wchar_t *filename);
2019-10-15 03:18:18 +00:00
void clock_config_load(struct clock_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);
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 netenv_config_load(struct netenv_config *cfg, const wchar_t *filename);
void nusec_config_load(struct nusec_config *cfg, const wchar_t *filename);
void pcbid_config_load(struct pcbid_config *cfg, const wchar_t *filename);
void vfs_config_load(struct vfs_config *cfg, const wchar_t *filename);