forked from mirror/openmw-tes3mp
[Client] Add Files::Collections to Main::init() arguments
This commit is contained in:
parent
c353e18645
commit
9199446edd
3 changed files with 4 additions and 3 deletions
|
@ -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…
Reference in a new issue