2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

DGRP Fixes

This commit is contained in:
2016-04-12 04:37:07 -07:00
parent 497ad50fa6
commit 14e0468adf
10 changed files with 99 additions and 5 deletions

View File

@@ -15,6 +15,7 @@
#include "DNACommon/WPSC.hpp"
#include "DNACommon/CRSC.hpp"
#include "DNACommon/DPSC.hpp"
#include "DNACommon/DGRP.hpp"
#include "hecl/ClientProcess.hpp"
@@ -339,6 +340,8 @@ struct SpecMP1 : SpecBase
return true;
else if (!strcmp(classType, DNAParticle::DPSM<UniqueID32>::DNAType()))
return true;
else if (!strcmp(classType, DNADGRP::DGRP<UniqueID32>::DNAType()))
return true;
return false;
});
}
@@ -436,6 +439,12 @@ struct SpecMP1 : SpecBase
dpsm.read(reader);
DNAParticle::WriteDPSM(dpsm, out);
}
else if (!classStr.compare(DNADGRP::DGRP<UniqueID32>::DNAType()))
{
DNADGRP::DGRP<UniqueID32> dgrp;
dgrp.read(reader);
DNADGRP::WriteDGRP(dgrp, out);
}
}
progress(_S("Done"));
}