mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 16:57:47 +00:00
World ID parameter for lobby
This commit is contained in:
parent
df98c09179
commit
166e61d6f3
2 changed files with 4 additions and 2 deletions
|
@ -27,5 +27,7 @@
|
|||
<Parameters>
|
||||
<!-- Do not disconnect players without a session - this should be definitely disabled unless you are testing on a PS4 -->
|
||||
<AllowNoSessionConnect>false</AllowNoSessionConnect>
|
||||
<!-- The ID of the Sapphire world - this is what the game determines your datacenter with, check world.exh -->
|
||||
<WorldID>67</WorldID>
|
||||
</Parameters>
|
||||
</Settings>
|
|
@ -104,7 +104,7 @@ void Core::Network::GameConnection::getCharList( FFXIVARR_PACKET_RAW& packet, ui
|
|||
serverListPacket.data().seq = 1;
|
||||
serverListPacket.data().offset = 0;
|
||||
serverListPacket.data().numServers = 1;
|
||||
serverListPacket.data().server[0].id = 1;
|
||||
serverListPacket.data().server[0].id = g_serverLobby.m_pConfig->getValue<uint16_t>( "Settings.Parameters.WorldID", 1 );
|
||||
serverListPacket.data().server[0].index = 0;
|
||||
serverListPacket.data().final = 1;
|
||||
sprintf( serverListPacket.data().server[0].name, "Sapphire" );
|
||||
|
@ -141,7 +141,7 @@ void Core::Network::GameConnection::getCharList( FFXIVARR_PACKET_RAW& packet, ui
|
|||
auto& charEntry = charList[charIndex];
|
||||
details.uniqueId = get<1>( charEntry );
|
||||
details.contentId = get<2>( charEntry );
|
||||
details.serverId = 1;
|
||||
details.serverId = g_serverLobby.m_pConfig->getValue<uint16_t>( "Settings.Parameters.WorldID", 1 );
|
||||
details.index = charIndex;
|
||||
strcpy( details.charDetailJson, get<3>( charEntry ).c_str() );
|
||||
strcpy( details.nameChara, get<0>( charEntry ).c_str() );
|
||||
|
|
Loading…
Add table
Reference in a new issue