diff --git a/simgear/misc/ResourceManager.cxx b/simgear/misc/ResourceManager.cxx index 59454dce..ec538f1b 100644 --- a/simgear/misc/ResourceManager.cxx +++ b/simgear/misc/ResourceManager.cxx @@ -49,6 +49,11 @@ ResourceManager* ResourceManager::instance() return static_manager; } +bool ResourceManager::haveInstance() +{ + return static_manager != nullptr; +} + ResourceManager::~ResourceManager() { assert(this == static_manager); diff --git a/simgear/misc/ResourceManager.hxx b/simgear/misc/ResourceManager.hxx index b957f0de..ac81e651 100644 --- a/simgear/misc/ResourceManager.hxx +++ b/simgear/misc/ResourceManager.hxx @@ -47,6 +47,8 @@ public: static ResourceManager* instance(); + static bool haveInstance(); + static void reset(); /**