forked from TeamTofuShop/segatools
platform: Shift config structs around
This commit is contained in:
@ -6,73 +6,16 @@
|
||||
#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 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 {
|
||||
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 netenv_config netenv;
|
||||
struct nusec_config nusec;
|
||||
struct vfs_config vfs;
|
||||
};
|
||||
#include "platform/amvideo.h"
|
||||
#include "platform/clock.h"
|
||||
#include "platform/dns.h"
|
||||
#include "platform/hwmon.h"
|
||||
#include "platform/misc.h"
|
||||
#include "platform/netenv.h"
|
||||
#include "platform/nusec.h"
|
||||
#include "platform/pcbid.h"
|
||||
#include "platform/platform.h"
|
||||
#include "platform/vfs.h"
|
||||
|
||||
void platform_config_load(
|
||||
struct platform_config *cfg,
|
||||
|
Reference in New Issue
Block a user