Skip to content

Commit

Permalink
The filesystem module can shut itself down
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 3, 2017
1 parent e8e830c commit eaf2f21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions plugins/vfspk3/Doom3FileSystem.cpp
Expand Up @@ -358,3 +358,8 @@ void Doom3FileSystem::initialiseModule(const ApplicationContext& ctx)

initialise();
}

void Doom3FileSystem::shutdownModule()
{
shutdown();
}
7 changes: 4 additions & 3 deletions plugins/vfspk3/Doom3FileSystem.h
Expand Up @@ -61,9 +61,10 @@ class Doom3FileSystem :
virtual void removeObserver(Observer& observer);

// RegisterableModule implementation
virtual const std::string& getName() const;
virtual const StringSet& getDependencies() const;
virtual void initialiseModule(const ApplicationContext& ctx);
const std::string& getName() const override;
const StringSet& getDependencies() const override;
void initialiseModule(const ApplicationContext& ctx) override;
void shutdownModule() override;

private:
void initPakFile(ArchiveLoader& archiveModule, const std::string& filename);
Expand Down
3 changes: 0 additions & 3 deletions radiant/RadiantModule.cpp
Expand Up @@ -8,7 +8,6 @@
#include "iregistry.h"
#include "icommandsystem.h"
#include "itextstream.h"
#include "ifilesystem.h"
#include "iuimanager.h"
#include "ieclass.h"
#include "ipreferencesystem.h"
Expand Down Expand Up @@ -218,8 +217,6 @@ void RadiantModule::shutdownModule()
{
rMessage() << "RadiantModule::shutdownModule called." << std::endl;

GlobalFileSystem().shutdown();

_radiantShutdown.clear();
}

Expand Down

0 comments on commit eaf2f21

Please sign in to comment.