mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
[Client] Replace plugin load order message with a clearer one at the top
This commit is contained in:
parent
1dbe9f0eaa
commit
0284f18876
@ -59,6 +59,7 @@ string intToHexStr(unsigned val)
|
||||
string comparePlugins(PacketPreInit::PluginContainer checksums, PacketPreInit::PluginContainer checksumsResponse)
|
||||
{
|
||||
std::ostringstream sstr;
|
||||
sstr << "Your plugins or their load order don't match the server's.\n\n";
|
||||
sstr << "Your current plugins are:\n";
|
||||
|
||||
const int maxLineLength = 100;
|
||||
@ -117,7 +118,6 @@ string comparePlugins(PacketPreInit::PluginContainer checksums, PacketPreInit::P
|
||||
lineLength = lineLength + plugin.size() + 13;
|
||||
}
|
||||
|
||||
sstr << "\n\nNote: Use the same load order as the server.";
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
@ -135,6 +135,7 @@ string comparePluginsMonospaced(PacketPreInit::PluginContainer checksums, Packet
|
||||
if (pluginNameLen2 < checksumsResponse[i].first.size())
|
||||
pluginNameLen2 = checksumsResponse[i].first.size();
|
||||
|
||||
sstr << "Your plugins or their load order don't match the server's.\n\n";
|
||||
printWithWidth(sstr, "Your current plugins are:", pluginNameLen1 + 16);
|
||||
sstr << "To join this server, use:\n";
|
||||
|
||||
@ -175,7 +176,6 @@ string comparePluginsMonospaced(PacketPreInit::PluginContainer checksums, Packet
|
||||
sstr << "\n";
|
||||
}
|
||||
|
||||
sstr << "\nNote: Use the same load order as the server.";
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user