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

ported in GX -> Blender material translator

This commit is contained in:
Jack Andersen
2015-08-02 13:30:39 -10:00
parent a3db545b01
commit abfbec1563
7 changed files with 845 additions and 12 deletions

View File

@@ -64,7 +64,7 @@ struct STRG : ISTRG, BigYAML
{
STRG strg;
strg.read(rs);
FILE* fp = HECL::Fopen(outPath.getAbsolutePath().c_str(), _S("w"));
FILE* fp = HECL::Fopen(outPath.getAbsolutePath().c_str(), _S("wb"));
strg.toYAMLFile(fp);
fclose(fp);
return true;
@@ -73,7 +73,7 @@ struct STRG : ISTRG, BigYAML
static bool Cook(const HECL::ProjectPath& inPath, const HECL::ProjectPath& outPath)
{
STRG strg;
FILE* fp = HECL::Fopen(inPath.getAbsolutePath().c_str(), _S("r"));
FILE* fp = HECL::Fopen(inPath.getAbsolutePath().c_str(), _S("rb"));
strg.fromYAMLFile(fp);
fclose(fp);
Athena::io::FileWriter ws(outPath.getAbsolutePath());