mirror of https://github.com/AxioDL/metaforce.git
driver: Add missing override specifiers where applicable
Adds missing override specifiers to enforce correct virtual member function signatures.
This commit is contained in:
parent
1fb18dbf26
commit
c390f3d489
|
@ -145,9 +145,9 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("cook"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("cook"); }
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
hecl::MultiProgressPrinter printer(true);
|
hecl::MultiProgressPrinter printer(true);
|
||||||
hecl::ClientProcess cp(&printer);
|
hecl::ClientProcess cp(&printer);
|
||||||
for (const hecl::ProjectPath& path : m_selectedItems)
|
for (const hecl::ProjectPath& path : m_selectedItems)
|
||||||
|
@ -156,5 +156,5 @@ public:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cancel() { m_useProj->interruptCook(); }
|
void cancel() override { m_useProj->interruptCook(); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -112,7 +112,7 @@ public:
|
||||||
help.endWrap();
|
help.endWrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("extract"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("extract"); }
|
||||||
|
|
||||||
static void _recursivePrint(int level, hecl::Database::IDataSpec::ExtractReport& rep) {
|
static void _recursivePrint(int level, hecl::Database::IDataSpec::ExtractReport& rep) {
|
||||||
for (int l = 0; l < level; ++l)
|
for (int l = 0; l < level; ++l)
|
||||||
|
@ -129,7 +129,7 @@ public:
|
||||||
_recursivePrint(level + 1, child);
|
_recursivePrint(level + 1, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
if (m_specPasses.empty()) {
|
if (m_specPasses.empty()) {
|
||||||
if (XTERM_COLOR)
|
if (XTERM_COLOR)
|
||||||
fmt::print(fmt(_SYS_STR("" RED BOLD "NOTHING TO EXTRACT" NORMAL "\n")));
|
fmt::print(fmt(_SYS_STR("" RED BOLD "NOTHING TO EXTRACT" NORMAL "\n")));
|
||||||
|
|
|
@ -15,7 +15,7 @@ public:
|
||||||
m_good = true;
|
m_good = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
~ToolHelp() {}
|
~ToolHelp() override = default;
|
||||||
|
|
||||||
static void Help(HelpOutput& help) {
|
static void Help(HelpOutput& help) {
|
||||||
help.printBold(
|
help.printBold(
|
||||||
|
@ -72,9 +72,9 @@ public:
|
||||||
ho.go();
|
ho.go();
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("help"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("help"); }
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
ShowHelp(m_info.args.front());
|
ShowHelp(m_info.args.front());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ public:
|
||||||
"provided a path within a project"));
|
"provided a path within a project"));
|
||||||
}
|
}
|
||||||
|
|
||||||
~ToolImage() {}
|
~ToolImage() override = default;
|
||||||
|
|
||||||
static void Help(HelpOutput& help) {
|
static void Help(HelpOutput& help) {
|
||||||
help.secHead(_SYS_STR("NAME"));
|
help.secHead(_SYS_STR("NAME"));
|
||||||
|
@ -71,9 +71,9 @@ public:
|
||||||
help.endWrap();
|
help.endWrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("image"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("image"); }
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
if (XTERM_COLOR)
|
if (XTERM_COLOR)
|
||||||
fmt::print(fmt(_SYS_STR("" GREEN BOLD "ABOUT TO IMAGE:" NORMAL "\n")));
|
fmt::print(fmt(_SYS_STR("" GREEN BOLD "ABOUT TO IMAGE:" NORMAL "\n")));
|
||||||
else
|
else
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
m_dir = dir;
|
m_dir = dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
if (!m_dir)
|
if (!m_dir)
|
||||||
return 1;
|
return 1;
|
||||||
size_t ErrorRef = logvisor::ErrorCount;
|
size_t ErrorRef = logvisor::ErrorCount;
|
||||||
|
@ -73,5 +73,5 @@ public:
|
||||||
help.endWrap();
|
help.endWrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("init"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("init"); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -156,9 +156,9 @@ public:
|
||||||
help.endWrap();
|
help.endWrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("package"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("package"); }
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
if (XTERM_COLOR)
|
if (XTERM_COLOR)
|
||||||
fmt::print(fmt(_SYS_STR("" GREEN BOLD "ABOUT TO PACKAGE:" NORMAL "\n")));
|
fmt::print(fmt(_SYS_STR("" GREEN BOLD "ABOUT TO PACKAGE:" NORMAL "\n")));
|
||||||
else
|
else
|
||||||
|
@ -181,5 +181,5 @@ public:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cancel() { m_useProj->interruptCook(); }
|
void cancel() override { m_useProj->interruptCook(); }
|
||||||
};
|
};
|
||||||
|
|
|
@ -71,9 +71,9 @@ public:
|
||||||
help.endWrap();
|
help.endWrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
hecl::SystemString toolName() const { return _SYS_STR("spec"); }
|
hecl::SystemString toolName() const override { return _SYS_STR("spec"); }
|
||||||
|
|
||||||
int run() {
|
int run() override {
|
||||||
if (!m_info.project) {
|
if (!m_info.project) {
|
||||||
for (const hecl::Database::DataSpecEntry* spec : hecl::Database::DATA_SPEC_REGISTRY) {
|
for (const hecl::Database::DataSpecEntry* spec : hecl::Database::DATA_SPEC_REGISTRY) {
|
||||||
if (XTERM_COLOR)
|
if (XTERM_COLOR)
|
||||||
|
|
Loading…
Reference in New Issue