mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Mark filesystem singleton getter inline
This commit is contained in:
parent
966b94c4a0
commit
94939b5b40
@ -2,14 +2,6 @@
|
||||
#include "vpklib/packedstore.h"
|
||||
#include "filesystem/filesystem.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Singleton FileSystem
|
||||
//-----------------------------------------------------------------------------
|
||||
CFileSystem_Stdio* FileSystem()
|
||||
{
|
||||
return (*g_pFullFileSystem);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
CFileSystem_Stdio** g_pFullFileSystem = nullptr;
|
||||
CFileSystem_Stdio* g_pFileSystem_Stdio = nullptr;
|
@ -33,7 +33,14 @@ protected:
|
||||
extern CFileSystem_Stdio** g_pFullFileSystem; // Ptr to g_pFileSystem_Stdio.
|
||||
extern CFileSystem_Stdio* g_pFileSystem_Stdio;
|
||||
|
||||
CFileSystem_Stdio* FileSystem();
|
||||
//-----------------------------------------------------------------------------
|
||||
// Singleton FileSystem
|
||||
//-----------------------------------------------------------------------------
|
||||
inline CFileSystem_Stdio* FileSystem()
|
||||
{
|
||||
return (*g_pFullFileSystem);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class VFileSystem_Stdio : public IDetour
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user