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

Externally track MemoryRelays

This commit is contained in:
2017-01-31 03:21:45 -08:00
parent 0ed44f1cdc
commit 5b5f3318b0
10 changed files with 471 additions and 379 deletions

View File

@@ -161,11 +161,8 @@ struct SCAN : BigYAML
return true;
}
static bool Cook(const hecl::ProjectPath& inPath, const hecl::ProjectPath& outPath)
static bool Cook(const SCAN& scan, const hecl::ProjectPath& outPath)
{
SCAN scan;
athena::io::FileReader reader(inPath.getAbsolutePath());
scan.fromYAMLStream(reader);
athena::io::FileWriter ws(outPath.getAbsolutePath());
scan.write(ws);
return true;
@@ -204,6 +201,12 @@ struct SCAN : BigYAML
}
}
}
void gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut)
{
for (int i = 0; i < 4; ++i)
g_curSpec->flattenDependencies(textures[i].texture, pathsOut);
}
};
}
}