Hi!
Main question:
How exactly does ProjectSettings.load_resource_pack() load resource pack?
Does it load the entire pack into memory (RAM). Does it extract the content to a temporary folder? Or, does it only read the file paths inside the PCK/ZIP and only load when they are accessed?
Context:
I’m trying to make my game moddable with PCK/ZIP. My current design goal is to load the mods on startup to read their metadata (via a custom resource) but won’t use the mods themselves until enabled.
The mod’s metadata are their name, ID, description, thumbnail, etc., that help with displaying them in the mods menu, checking dependencies, etc.
However, if the entire pack is loaded into memory and the player doesn’t actually enable it, then memory will be wasted.