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

Add ability to load tweaks

This commit is contained in:
2016-08-31 14:00:06 -07:00
parent d104c7eb45
commit 955d043c9e
4 changed files with 15 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
#include "DNACommon/DGRP.hpp"
#include "DNACommon/Tweaks/TweakWriter.hpp"
#include "DNAMP1/Tweaks/CTweakPlayerRes.hpp"
#include "DNAMP1/Tweaks/CTweakGunRes.hpp"
#include "hecl/ClientProcess.hpp"
@@ -350,6 +351,8 @@ struct SpecMP1 : SpecBase
return true;
else if (!strcmp(classType, DNAMP1::CTweakPlayerRes::DNAType()))
return true;
else if (!strcmp(classType, DNAMP1::CTweakGunRes::DNAType()))
return true;
return false;
});
}
@@ -495,6 +498,12 @@ struct SpecMP1 : SpecBase
playerRes.read(reader);
WriteTweak(playerRes, out);
}
else if (!classStr.compare(DNAMP1::CTweakGunRes::DNAType()))
{
DNAMP1::CTweakGunRes gunRes;
gunRes.read(reader);
WriteTweak(gunRes, out);
}
}
progress(_S("Done"));
}