[Client] Add Files::Collections to Main::init() arguments

0.6.1
Koncord 8 years ago
parent c353e18645
commit 9199446edd

@ -657,7 +657,7 @@ private:
void OMW::Engine::go()
{
assert (!mContentFiles.empty());
if(!mwmp::Main::init(mContentFiles))
if(!mwmp::Main::init(mContentFiles, mFileCollections))
return;
std::cout << "OSG version: " << osgGetVersion() << std::endl;

@ -122,7 +122,7 @@ void RestoreMgr(Settings::Manager &mgr)
mgr.mChangedSettings = saveChangedSettings;
}
bool Main::init(std::vector<std::string> &content)
bool Main::init(std::vector<std::string> &content, Files::Collections &collections)
{
assert(!pMain);
pMain = new Main();

@ -1,5 +1,6 @@
#include "../mwworld/ptr.hpp"
#include <boost/program_options.hpp>
#include <components/files/collections.hpp>
namespace mwmp
{
@ -16,7 +17,7 @@ namespace mwmp
static void optionsDesc(boost::program_options::options_description *desc);
static void configure(const boost::program_options::variables_map &variables);
static bool init(std::vector<std::string> &content);
static bool init(std::vector<std::string> &content, Files::Collections &collections);
static void postInit();
static void destroy();
static const Main &get();

Loading…
Cancel
Save