Overview
PathConfig is a structure that defines the directory paths for game content, user data, and updates. It is passed to the OnConfigurePaths() virtual hook in ReXApp, allowing subclasses to customize data storage locations before the Runtime is constructed.
Definition
Fields
Root directory for read-only game content (assets, original game files)
Root directory for user-specific data (save files, settings, profiles)
Root directory for game updates and downloadable content
Default Values
All paths start with sensible defaults derived from:- Command-line arguments
- Console variables (cvars)
- Platform conventions
OnConfigurePaths() hook before Runtime construction.
Usage
OverrideOnConfigurePaths() to customize data paths:
Accessing Configured Paths
After configuration, the resolved paths can be accessed throughReXApp accessor methods:
See Also
- rex::ReXApp - Base application class that uses this structure
- ReXApp Virtual Hooks - Virtual hook for path customization