1 2 3 4 5 6 7 8 9
#include "FileSystem.h" FileSystem& GetFileSystem() { if (!FileSystem::m_Instance) { FileSystem::m_Instance = new FileSystem(); } return *FileSystem::m_Instance; }