LDKConfig
typedef struct LDKConfig{
XSmallstr title;
XFSPath config_file_path;
XFSPath runtree_path;
XFSPath icon_path;
XFSPath asset_root;
XFSPath log_file;
XFSPath game_dll;
i32 display_width;
i32 display_height;
i32 resolution_width;
i32 resolution_height;
u32 shadow_map_resolution;
float shadow_distance;
i32 initial_ui_index_capacity;
i32 initial_ui_vertex_capacity;
bool fullscreen;
}LDKConfig;
ldk_engine_config_from_ini
Populate an engine configuration from parsed INI settings.
LDK_API bool ldk_engine_config_from_ini(
LDKConfig *out_config,
XIni *ini,
const char *config_ini_path
);
Parameters
LDKConfig *out_config
- Receives the resulting config.
XIni *ini
- Ini used by this operation.
const char *config_ini_path
- Path to the engine configuration INI.
Returns
True if the operation succeeds; false otherwise.
ldk_engine_config_get
Get a read-only pointer to the active engine configuration.
LDK_API const LDKConfig * ldk_engine_config_get(void);
Returns
Pointer to the requested object or data; NULL when unavailable.