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

work on extract tool

This commit is contained in:
Jack Andersen
2015-07-09 19:28:33 -10:00
parent 81d8329f74
commit 45c593b596
6 changed files with 92 additions and 19 deletions

View File

@@ -70,26 +70,24 @@ public:
*/
struct ExtractPassInfo
{
SystemString srcpath;
ProjectPath subpath;
bool cookedonly;
const SystemString* srcpath;
std::vector<const SystemString*> extractArgs;
};
/**
* @brief Interactive Extract Option
* @brief Extract Report Representation
*
* Constructed by canExtract() to solicit the user for game-specific
* extraction options (i.e. games that are gathered into a trilogy collection)
* Constructed by canExtract() to advise the user of the content about
* to be extracted
*/
struct ExtractOption
struct ExtractReport
{
SystemString name;
SystemString desc;
bool defVal;
std::vector<ExtractOption> childOpts;
std::vector<ExtractReport> childOpts;
};
virtual bool canExtract(const ExtractPassInfo& info, std::vector<ExtractOption>& opts)
virtual bool canExtract(const ExtractPassInfo& info, std::vector<ExtractReport>& reps)
{(void)info;LogModule.report(LogVisor::Error, "not implemented");return false;}
virtual void doExtract(const Project& project, const ExtractPassInfo& info)
{(void)project;(void)info;}