mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-09-16 23:09:16 +02:00
Implement custom paks loading per level
Game will check scripts/levels/mapname.json and load all rpaks in the rpak field. Game now also unloads pak files loaded by the SDK preventing crashes and unnecessary memory usage. VPK's and STBSP's are planned to be added as well.
This commit is contained in:
@@ -124,6 +124,7 @@ void Systems_Init()
|
||||
#if defined (DEDICATED) || defined (GAMEDLL_S3)
|
||||
CHostState_Attach();
|
||||
#endif // DEDICATED || GAMEDLL_S3
|
||||
//CModelLoader_Attach();
|
||||
|
||||
CNetChan_Attach();
|
||||
ConCommand_Attach();
|
||||
@@ -208,6 +209,7 @@ void Systems_Shutdown()
|
||||
#if defined (DEDICATED) || defined (GAMEDLL_S3)
|
||||
CHostState_Detach(); // Dedicated only for now until backwards compatible with S1.
|
||||
#endif // DEDICATED || GAMEDLL_S3
|
||||
//CModelLoader_Detach();
|
||||
|
||||
CNetChan_Detach();
|
||||
ConCommand_Detach();
|
||||
|
Reference in New Issue
Block a user