mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 16:45:44 +00:00
29 lines
624 B
C++
29 lines
624 B
C++
#include "ObjWriting.h"
|
|
#include "Dumping/IZoneDumper.h"
|
|
#include "Game/T6/ZoneDumperT6.h"
|
|
|
|
ObjWriting::Configuration_t ObjWriting::Configuration;
|
|
|
|
const IZoneDumper* const ZONE_DUMPER[]
|
|
{
|
|
new ZoneDumperT6()
|
|
};
|
|
|
|
bool ObjWriting::DumpZone(Zone* zone, const std::string& basePath)
|
|
{
|
|
for (auto dumper : ZONE_DUMPER)
|
|
{
|
|
if (dumper->CanHandleZone(zone))
|
|
{
|
|
if (dumper->DumpZone(zone, basePath))
|
|
{
|
|
return true;
|
|
}
|
|
|
|
printf("Dumper for zone '%s' failed!\n", zone->m_name.c_str());
|
|
return false;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
} |