diff options
Diffstat (limited to 'common/system.cpp')
-rw-r--r-- | common/system.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/system.cpp b/common/system.cpp index 51f41ecf1d..97c8f8520b 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -49,6 +49,7 @@ OSystem::OSystem() { _updateManager = nullptr; #endif _fsFactory = nullptr; + _backendInitialized = false; } OSystem::~OSystem() { @@ -98,6 +99,13 @@ void OSystem::initBackend() { // set it. // if (!_fsFactory) // error("Backend failed to instantiate fs factory"); + + _backendInitialized = true; +} + +void OSystem::destroy() { + _backendInitialized = false; + delete this; } bool OSystem::setGraphicsMode(const char *name) { |