diff options
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/ChunkGenerator.cpp | 5 | ||||
-rw-r--r-- | src/Generating/ChunkGenerator.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/Generating/ChunkGenerator.cpp b/src/Generating/ChunkGenerator.cpp index 8c0997d6b..d66838f9e 100644 --- a/src/Generating/ChunkGenerator.cpp +++ b/src/Generating/ChunkGenerator.cpp @@ -47,7 +47,7 @@ cChunkGenerator::~cChunkGenerator() -bool cChunkGenerator::Start(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile) +bool cChunkGenerator::Initialize(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile) { m_PluginInterface = &a_PluginInterface; m_ChunkSink = &a_ChunkSink; @@ -86,8 +86,7 @@ bool cChunkGenerator::Start(cPluginInterface & a_PluginInterface, cChunkSink & a } m_Generator->Initialize(a_IniFile); - - return super::Start(); + return true; } diff --git a/src/Generating/ChunkGenerator.h b/src/Generating/ChunkGenerator.h index cbbe1d1c7..c4be505da 100644 --- a/src/Generating/ChunkGenerator.h +++ b/src/Generating/ChunkGenerator.h @@ -33,7 +33,7 @@ class cChunkDesc; class cChunkGenerator : - cIsThread + public cIsThread { typedef cIsThread super; @@ -110,7 +110,9 @@ public: cChunkGenerator (void); virtual ~cChunkGenerator() override; - bool Start(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile); + /** Read settings from the ini file and initialize in preperation for being started. */ + bool Initialize(cPluginInterface & a_PluginInterface, cChunkSink & a_ChunkSink, cIniFile & a_IniFile); + void Stop(void); /** Queues the chunk for generation |