Kudos to Shiz for providing the groundwork for this. Fundamentally re-think how launcher operates and bootstrapping the games is managed and configured. This brings it significantly closer to how the original bootstrap is doing the job: launcher now utilizes the data (structures) provided by the bootstrap.xml configuration file. This creates compatibility with vanilla data dumps and original stock images. Note that bemanitools does not include any code or means to run DRM'd data, only decrypted. But, this allows users to keep decrypted dumps as stock as possible which means: * No copying around of property files anymore * Keep the modules/ folder with the binaries * Have bemanitools binaries separate in the data * No need to edit/customize the original configuration files A list of key features of the "new" launcher: * Boostrap games by following the configuration provided by stock game's bootstrap.xml files * Custom launcher.xml configuration file that adds further launcher configurable features, composability of bootstrap.xml configuration(s) as well as configuration overriding/stacking of selected types of configurations, e.g. eamuse config, avs-config. The latter eliminates the need for modifying stock config files in the prop/ folder * Unified logging system: launcher and AVS logging uses the same logger, all output can now be in a single file * Original features such as various hook types still available Due to the significant architectural changes, this also breaks with any backwards compatibility to existing launcher setups. Thus, users need to migrate by re-applying the new configuration format and migrating their config parameters accordingly. Further migration instructions and updated documentation will be provided upon release. Co-authored-by: Shiz <hi@shiz.me>
57 lines
2.2 KiB
C
57 lines
2.2 KiB
C
#ifndef LAUNCHER_AVS_CONFIG_H
|
|
#define LAUNCHER_AVS_CONFIG_H
|
|
|
|
#include "core/log-bt.h"
|
|
|
|
#include "imports/avs.h"
|
|
|
|
#include "launcher/bootstrap-config.h"
|
|
|
|
#define AVS_CONFIG_MOUNTTABLE_MAX_ENTRIES 16
|
|
|
|
struct avs_config_vfs_mounttable {
|
|
struct {
|
|
char fstype[64];
|
|
char src[512];
|
|
char dst[512];
|
|
char opt[256];
|
|
} entry[AVS_CONFIG_MOUNTTABLE_MAX_ENTRIES];
|
|
|
|
uint8_t num_entries;
|
|
};
|
|
|
|
struct property *avs_config_load(const char *filepath);
|
|
struct property_node *avs_config_root_get(struct property *property);
|
|
struct property *
|
|
avs_config_property_merge(struct property *parent, struct property *source);
|
|
|
|
void avs_config_fs_root_device_get(
|
|
struct property_node *node, char *buffer, size_t size);
|
|
|
|
void avs_config_mode_product_set(struct property_node *node, bool enable);
|
|
void avs_config_net_raw_set(struct property_node *node, bool enable);
|
|
void avs_config_net_eaudp_set(struct property_node *node, bool enable);
|
|
void avs_config_sntp_ea_set(struct property_node *node, bool on);
|
|
void avs_config_log_level_set(struct property_node *node, const char *level);
|
|
void avs_config_log_name_set(struct property_node *node, const char *name);
|
|
void avs_config_log_file_set(struct property_node *node, const char *file);
|
|
void avs_config_log_buffer_size_set(struct property_node *node, uint32_t size);
|
|
void avs_config_log_output_delay_set(
|
|
struct property_node *node, uint16_t delay_ms);
|
|
void avs_config_log_enable_console_set(struct property_node *node, bool enable);
|
|
void avs_config_log_enable_sci_set(struct property_node *node, bool enable);
|
|
void avs_config_log_enable_net_set(struct property_node *node, bool enable);
|
|
void avs_config_log_enable_file_set(struct property_node *node, bool enable);
|
|
void avs_config_log_rotate_set(struct property_node *node, bool rotate);
|
|
void avs_config_log_append_set(struct property_node *node, bool append);
|
|
void avs_config_log_count_set(struct property_node *node, uint16_t count);
|
|
|
|
void avs_config_set_log_level(
|
|
struct property_node *node, enum core_log_bt_log_level loglevel);
|
|
void avs_config_local_fs_path_dev_nvram_and_raw_set(
|
|
struct property_node *node, const char *dev_nvram_raw_path);
|
|
|
|
void avs_config_vfs_mounttable_get(
|
|
struct property_node *node, struct avs_config_vfs_mounttable *mounttable);
|
|
|
|
#endif |