xNVSE / NVSE

New Vegas Script Extender (NVSE)
https://git.io/JfSAo
710 stars 56 forks source link

Add a basic plugin preloading system and proper plugin checks #201

Closed WallSoGB closed 3 months ago

WallSoGB commented 3 months ago

This PR implements two things:

With the new preload system, plugins can opt-in into being loaded as early as possible through nvse_steam_loader. Plugin needs to declare and export a "bool NVSEPlugin_Preload()" function in order to be loaded at such early stage.

Since NVSE does not exist at that point of time, usage of its interfaces must be limited to the standard load time (NVSEPlugin_Load()). Same thing applies to game's data, but I think modders who are going to benefit from this method are well aware of game's state on launch.