mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 12:27:43 +00:00
Additional addon features for MP3
This commit is contained in:
@@ -27,6 +27,7 @@ logvisor::Module LogModule("hecl::Driver");
|
||||
#include "ToolCook.hpp"
|
||||
#include "ToolPackage.hpp"
|
||||
#include "ToolImage.hpp"
|
||||
#include "ToolInstallAddon.hpp"
|
||||
#include "ToolHelp.hpp"
|
||||
|
||||
/* Static reference to dataspec additions
|
||||
@@ -49,9 +50,9 @@ static void printHelp(const hecl::SystemChar* pname) {
|
||||
else
|
||||
fmt::print(fmt(_SYS_STR("HECL")));
|
||||
#if HECL_HAS_NOD
|
||||
#define TOOL_LIST "extract|init|cook|package|image|help"
|
||||
#define TOOL_LIST "extract|init|cook|package|image|installaddon|help"
|
||||
#else
|
||||
#define TOOL_LIST "extract|init|cook|package|help"
|
||||
#define TOOL_LIST "extract|init|cook|package|installaddon|help"
|
||||
#endif
|
||||
#if HECL_GIT
|
||||
fmt::print(fmt(_SYS_STR(" Commit " HECL_GIT_S " " HECL_BRANCH_S "\nUsage: {} " TOOL_LIST "\n")), pname);
|
||||
@@ -251,6 +252,10 @@ static std::unique_ptr<ToolBase> MakeSelectedTool(hecl::SystemString toolName, T
|
||||
}
|
||||
#endif
|
||||
|
||||
if (toolNameLower == _SYS_STR("installaddon")) {
|
||||
return std::make_unique<ToolInstallAddon>(info);
|
||||
}
|
||||
|
||||
if (toolNameLower == _SYS_STR("help")) {
|
||||
return std::make_unique<ToolHelp>(info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user