[Server] Fix issues after rebase

ffi-server-rewrite
Koncord 6 years ago
parent c550697443
commit 860897fbd7

@ -77,7 +77,7 @@ Networking::~Networking()
void Networking::setServerPassword(const std::string &passw) noexcept void Networking::setServerPassword(const std::string &passw) noexcept
{ {
serverPassword = password.empty() ? TES3MP_DEFAULT_PASSW : password; serverPassword = passw.empty() ? TES3MP_DEFAULT_PASSW : passw;
} }
bool Networking::isPassworded() const bool Networking::isPassworded() const

@ -245,13 +245,8 @@ int main(int argc, char *argv[])
try try
{ {
<<<<<<< 0.7.0
for (auto plugin : plugins)
Script::LoadScript(plugin.c_str(), pluginHome.c_str());
=======
for (const auto &plugin : plugins) for (const auto &plugin : plugins)
Plugin::LoadPlugin(Utils::convertPath(plugin_home + "/scripts/" + plugin)); Plugin::LoadPlugin(Utils::convertPath(pluginHome + "/scripts/" + plugin));
>>>>>>> [Server] Rework Plugin API, move Lua system to external library
switch (peer->Startup((unsigned) players, &sd, 1)) switch (peer->Startup((unsigned) players, &sd, 1))
{ {

Loading…
Cancel
Save