How greygxds/spl-resourceloader works
resourceLoader is a GTA V Legacy single-player mod that loads FiveM-style resource folders and .rpf mods. Its main workflow is game startup through the loader, discovery and manifest parsing, then a staged streaming plan that registers assets and data with the game. The graph also shows mod archive handling and the game-memory bridge. The README documents these product capabilities; sampled source confirms orchestration and streaming/backend responsibilities, but does not expose every connection in the mod or manifest subsystems.
Main entry points: Application.cpp Application · ResourceManager.cpp Resource manager · ModsScanner.cpp Mods scanner · StreamingManager.cpp Streaming manager
Components 25
Startup and configuration
- ASI entry
src/main/Entry.cpp - Application
src/core/Application.cpp - Config loader
src/config/ConfigLoader.cpp - Game paths
src/core/Paths.cpp
Resource and mod inputs
- Resource manager
src/resource/ResourceManager.cpp - Resource scanner
src/resource/ResourceScanner.cpp - Manifest loader
src/manifest/LuaManifestLoader.cpp - Manifest parser
src/manifest/ManifestParser.cpp - Mods scanner
src/mods/ModsScanner.cpp - Mod catalog
src/mods/ModCatalog.cpp - Mod layout
src/mods/ModLayout.cpp - RPF reader
src/rpf/RpfReader.cpp
Streaming workflow
- Streaming plan
src/streaming/StreamingPlan.cpp - Asset scanner
src/streaming/AssetScanner.cpp - Streaming manager
src/streaming/StreamingManager.cpp - Asset registry
src/streaming/AssetRegistry.cpp
Game integration
- RAGE backend
src/rage/RageStreamingBackend.cpp - RAGE bridge
src/rage/RageBridge.cpp - Game file devices
src/rage/FileDeviceInterface.cpp - Hook manager
src/hooking/HookManager.cpp
Diagnostics
- Logger
src/logging/Logger.cpp - Crash handler
src/core/CrashHandler.cpp
Other components
- Player
- ScriptHookV
- GTA V
Connections 26
- Player → GTA V: launches
- ScriptHookV → ASI entry: loads ASI
- ASI entry → Application: starts
- Application → Config loader: loads settings
- Application → Game paths: resolves paths
- Application → Resource manager: discovers resources
- Resource manager → Resource scanner: scans folders
- Resource manager → Manifest loader: loads manifests
- Manifest loader → Manifest parser: parses manifest
- Application → Mods scanner: scans mods
- Mods scanner → RPF reader: reads archives
- Mods scanner → Mod catalog: catalogs mods
- Mod catalog → Mod layout: lays out mods
- Application → Streaming plan: builds plan
- Streaming plan → Asset scanner: scans assets
- Application → Streaming manager: pumps stages
- Streaming manager → RAGE backend: dispatches work
- Streaming manager → Asset registry: records assets
- RAGE backend → RAGE bridge: uses game APIs
- RAGE bridge → Game file devices: initializes devices
- RAGE bridge → GTA V: resolves game memory
- Application → Hook manager: sets up hooks
- Hook manager → GTA V: hooks functions
- Application → Logger: reports startup
- Crash handler → Logger: records crash
- Application → Crash handler: installs handler