1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-11-14 13:37:38 +01:00
segatools-hay1tsme/platform/config.h
2019-10-14 23:18:18 -04:00

90 lines
2.1 KiB
C

#pragma once
#include <windows.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
struct amvideo_config {
bool enable;
};
struct clock_config {
bool timezone;
bool timewarp;
bool writeable;
};
struct dns_config {
bool enable;
wchar_t router[128];
wchar_t startup[128];
wchar_t billing[128];
wchar_t aimedb[128];
};
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];
};
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 nu_config {
struct amvideo_config amvideo;
struct clock_config clock;
struct dns_config dns;
struct hwmon_config hwmon;
struct misc_config misc;
struct nusec_config nusec;
struct vfs_config vfs;
};
struct alls_config {
struct amvideo_config amvideo;
struct clock_config clock;
struct dns_config dns;
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);
void amvideo_config_load(struct amvideo_config *cfg, const wchar_t *filename);
void clock_config_load(struct clock_config *cfg, const wchar_t *filename);
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 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);