|
|
@ -23,6 +23,7 @@
|
|
|
|
#include <apps/openmw/mwdialogue/dialoguemanagerimp.hpp>
|
|
|
|
#include <apps/openmw/mwdialogue/dialoguemanagerimp.hpp>
|
|
|
|
#include <apps/openmw/mwworld/inventorystore.hpp>
|
|
|
|
#include <apps/openmw/mwworld/inventorystore.hpp>
|
|
|
|
#include <apps/openmw/mwmechanics/spellcasting.hpp>
|
|
|
|
#include <apps/openmw/mwmechanics/spellcasting.hpp>
|
|
|
|
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include "DedicatedPlayer.hpp"
|
|
|
|
#include "DedicatedPlayer.hpp"
|
|
|
|
#include "LocalPlayer.hpp"
|
|
|
|
#include "LocalPlayer.hpp"
|
|
|
@ -57,7 +58,7 @@ std::string loadSettings (Settings::Manager & settings)
|
|
|
|
|
|
|
|
|
|
|
|
Main::Main()
|
|
|
|
Main::Main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cout << "Main::Main" << std::endl;
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "%s", "TES3MP started");
|
|
|
|
mNetworking = new Networking();
|
|
|
|
mNetworking = new Networking();
|
|
|
|
mLocalPlayer = new LocalPlayer();
|
|
|
|
mLocalPlayer = new LocalPlayer();
|
|
|
|
mGUIController = new GUIController();
|
|
|
|
mGUIController = new GUIController();
|
|
|
@ -69,7 +70,7 @@ Main::Main()
|
|
|
|
|
|
|
|
|
|
|
|
Main::~Main()
|
|
|
|
Main::~Main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cout << "Main::~Main" << std::endl;
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "%s", "TES3MP stopped");
|
|
|
|
delete mNetworking;
|
|
|
|
delete mNetworking;
|
|
|
|
delete mLocalPlayer;
|
|
|
|
delete mLocalPlayer;
|
|
|
|
delete mGUIController;
|
|
|
|
delete mGUIController;
|
|
|
@ -90,6 +91,8 @@ void Main::Create()
|
|
|
|
mgr.mChangedSettings.clear();
|
|
|
|
mgr.mChangedSettings.clear();
|
|
|
|
loadSettings(mgr);
|
|
|
|
loadSettings(mgr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int logLevel = mgr.getInt("loglevel", "General");
|
|
|
|
|
|
|
|
Log::SetLevel(logLevel);
|
|
|
|
pMain->server = mgr.getString("server", "General");
|
|
|
|
pMain->server = mgr.getString("server", "General");
|
|
|
|
pMain->port = (unsigned short)mgr.getInt("port", "General");
|
|
|
|
pMain->port = (unsigned short)mgr.getInt("port", "General");
|
|
|
|
|
|
|
|
|
|
|
|