mirror of
https://github.com/drakmor/ShadowMountPlus.git
synced 2026-10-21 22:22:28 -05:00
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
#ifndef SM_CONFIG_MOUNT_H
|
|
#define SM_CONFIG_MOUNT_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct runtime_config runtime_config_t;
|
|
|
|
// Ensure runtime configuration is loaded before use.
|
|
void ensure_runtime_config_ready(void);
|
|
// Load runtime configuration from disk and apply defaults.
|
|
bool load_runtime_config(void);
|
|
// Reload runtime configuration from disk when config.ini changed.
|
|
bool reload_runtime_config_if_changed(bool *reloaded_out);
|
|
// Return the current runtime configuration.
|
|
const runtime_config_t *runtime_config(void);
|
|
// Return the number of configured scan roots.
|
|
int get_scan_path_count(void);
|
|
// Return a scan root by index, or NULL if out of range.
|
|
const char *get_scan_path(int index);
|
|
// Return scan depth for a root, including managed container-root expansion.
|
|
uint32_t get_scan_depth_for_root(const char *scan_path);
|
|
// Resolve a per-image read-only override from the file name.
|
|
bool get_image_mode_override(const char *filename, bool *mount_read_only_out);
|
|
// Resolve a per-image sector-size override from autotune.ini or config.ini.
|
|
bool get_image_sector_size_override(const char *filename,
|
|
uint32_t *sector_size_out);
|
|
// Upsert an autotuned per-image sector-size override.
|
|
bool upsert_image_sector_size_autotune(const char *filename,
|
|
uint32_t sector_size,
|
|
uint32_t *sector_size_out);
|
|
// Return true when the global fakelib overlay is disabled for this title.
|
|
bool is_global_fakelib_excluded_for_title(const char *title_id);
|
|
|
|
#endif
|