mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
24 lines
562 B
C++
24 lines
562 B
C++
![]() |
#include <iostream>
|
||
|
|
||
|
#include "ServerZone.h"
|
||
|
|
||
|
Core::ServerZone g_serverZone( "config/settings_zone.xml" );
|
||
|
|
||
|
int main( int argc, char* argv[] )
|
||
|
{
|
||
|
// i hate to do this, but we need to set this first...
|
||
|
for(auto i = 1; i < argc; ++i )
|
||
|
{
|
||
|
std::string arg( 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;
|
||
|
}
|