mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Merge branch 'develop' of https://github.com/SapphireMordred/Sapphire into develop
This commit is contained in:
commit
51a292415e
1 changed files with 22 additions and 16 deletions
|
@ -200,25 +200,31 @@ int main()
|
||||||
auto pos = file.find_last_of( "\\" );
|
auto pos = file.find_last_of( "\\" );
|
||||||
if( pos != std::string::npos )
|
if( pos != std::string::npos )
|
||||||
{
|
{
|
||||||
auto str = file.substr( 0, pos );
|
|
||||||
pos = str.find_last_of( "\\" );
|
|
||||||
auto zone = str.substr( pos + 1 );
|
|
||||||
//g_log.info( zone );
|
|
||||||
|
|
||||||
FFXIVIpcNpcSpawn packet;
|
auto pos = file.find_last_of( filesys::path::preferred_separator );
|
||||||
std::ifstream is;
|
if( pos != std::string::npos )
|
||||||
is.open( file, std::ios::binary );
|
{
|
||||||
is.seekg( 0x20, std::ios::beg );
|
auto str = file.substr( 0, pos );
|
||||||
is.read( ( char* ) &packet, sizeof( FFXIVIpcNpcSpawn ) );
|
pos = str.find_last_of( filesys::path::preferred_separator );
|
||||||
is.close();
|
auto zone = str.substr( pos + 1 );
|
||||||
|
//g_log.info( zone );
|
||||||
|
|
||||||
|
FFXIVIpcNpcSpawn packet;
|
||||||
|
std::ifstream is;
|
||||||
|
is.open( file, std::ios::binary );
|
||||||
|
is.seekg( 0x20, std::ios::beg );
|
||||||
|
is.read( ( char* ) &packet, sizeof( FFXIVIpcNpcSpawn ) );
|
||||||
|
is.close();
|
||||||
|
|
||||||
|
|
||||||
if( packet.subtype != 2 &&
|
if( packet.subtype != 2 &&
|
||||||
packet.subtype != 3 &&
|
packet.subtype != 3 &&
|
||||||
packet.enemyType != 0 &&
|
packet.enemyType != 0 &&
|
||||||
packet.spawnerId == 0xE0000000 &&
|
packet.spawnerId == 0xE0000000 &&
|
||||||
packet.fateID == 0 )
|
packet.fateID == 0 )
|
||||||
zoneToPacketList[ std::stoi( zone ) ].push_back( packet );
|
zoneToPacketList[ std::stoi( zone ) ].push_back( packet );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue