1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

Build fix

This commit is contained in:
Mordred Admin 2017-08-29 10:42:19 +02:00
parent cd67fe2b52
commit 2f20a8254f
2 changed files with 1 additions and 17 deletions

View file

@ -20,9 +20,6 @@ namespace Core {
void run( int32_t argc, char* argv[] );
void setServerId( uint16_t serverId );
uint16_t getServerId() const;
bool createSession( uint32_t sessionId );
void removeSession( uint32_t sessionId );
void removeSession( std::string playerName );

View file

@ -7,19 +7,6 @@ Core::ServerZone g_serverZone( "config/settings_zone.xml" );
int main( int32_t argc, char* argv[] )
{
// i hate to do this, but we need to set this first...
for(auto i = 1; i < argc; ++i )
{
auto arg = boost::to_lower_copy( std::string( argv[i] ) );
// trim '-' from start of arg
arg = arg.erase( 0, arg.find_first_not_of( '-' ) );
if( arg == "sId" && argc > i + 1 )
{
g_serverZone.setServerId( std::atol( argv[i + 1] ) );
break;
}
}
g_serverZone.run( argc, argv );
return 0;
}
}