mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 15:17:46 +00:00
pcb_reader
- export by level name
This commit is contained in:
parent
e540dbca47
commit
341dd45776
1 changed files with 10 additions and 3 deletions
|
@ -34,6 +34,8 @@ bool noObj = false;
|
||||||
|
|
||||||
std::string gamePath( "C:\\SquareEnix\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack" );
|
std::string gamePath( "C:\\SquareEnix\\FINAL FANTASY XIV - A Realm Reborn\\game\\sqpack" );
|
||||||
std::unordered_map< uint16_t, std::string > zoneNameMap;
|
std::unordered_map< uint16_t, std::string > zoneNameMap;
|
||||||
|
std::map< std::string, std::string > exportedTeriMap;
|
||||||
|
|
||||||
uint32_t zoneId;
|
uint32_t zoneId;
|
||||||
|
|
||||||
|
|
||||||
|
@ -204,14 +206,19 @@ int main( int argc, char* argv[] )
|
||||||
zoneDumpList.emplace( zoneName );
|
zoneDumpList.emplace( zoneName );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( const auto& zoneName : zoneDumpList )
|
for( auto zoneName : zoneDumpList )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
const auto& zonePath = zoneNameToPath( zoneName );
|
||||||
|
if( exportedTeriMap.find( zonePath ) != exportedTeriMap.end() )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
zoneName = zonePath.substr( zonePath.find_last_of( '/' ) );
|
||||||
|
|
||||||
ExportedZone exportedZone;
|
ExportedZone exportedZone;
|
||||||
exportedZone.name = zoneName;
|
exportedZone.name = zoneName;
|
||||||
|
exportedTeriMap[ zonePath ] = zoneName;
|
||||||
const auto& zonePath = zoneNameToPath( zoneName );
|
|
||||||
|
|
||||||
std::string listPcbPath( zonePath + "/collision/list.pcb" );
|
std::string listPcbPath( zonePath + "/collision/list.pcb" );
|
||||||
std::string bgLgbPath( zonePath + "/level/bg.lgb" );
|
std::string bgLgbPath( zonePath + "/level/bg.lgb" );
|
||||||
|
|
Loading…
Add table
Reference in a new issue