mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
Fixes for GameCube targeting
This commit is contained in:
@@ -78,7 +78,10 @@ protected:
|
||||
#endif
|
||||
{
|
||||
if (ch == 'n' || ch == 'N')
|
||||
{
|
||||
hecl::Printf(_S("\n"));
|
||||
return false;
|
||||
}
|
||||
if (ch == 'y' || ch == 'Y' || ch == '\r' || ch == '\n')
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -19,8 +19,9 @@ class ToolExtract final : public ToolBase
|
||||
{
|
||||
const hecl::Database::DataSpecEntry* m_entry;
|
||||
std::unique_ptr<hecl::Database::IDataSpec> m_instance;
|
||||
SpecExtractPass(const hecl::Database::DataSpecEntry* entry, hecl::Database::IDataSpec* instance)
|
||||
: m_entry(entry), m_instance(instance) {}
|
||||
SpecExtractPass(const hecl::Database::DataSpecEntry* entry,
|
||||
std::unique_ptr<hecl::Database::IDataSpec>&& instance)
|
||||
: m_entry(entry), m_instance(std::move(instance)) {}
|
||||
SpecExtractPass(const SpecExtractPass& other) = delete;
|
||||
SpecExtractPass(SpecExtractPass&& other) = default;
|
||||
};
|
||||
@@ -90,14 +91,9 @@ public:
|
||||
{
|
||||
if (entry->m_factory)
|
||||
{
|
||||
hecl::Database::IDataSpec* ds = entry->m_factory(*m_useProj, hecl::Database::DataSpecTool::Extract);
|
||||
if (ds)
|
||||
{
|
||||
if (ds->canExtract(m_einfo, m_reps))
|
||||
m_specPasses.emplace_back(entry, ds);
|
||||
else
|
||||
delete ds;
|
||||
}
|
||||
auto ds = entry->m_factory(*m_useProj, hecl::Database::DataSpecTool::Extract);
|
||||
if (ds && ds->canExtract(m_einfo, m_reps))
|
||||
m_specPasses.emplace_back(entry, std::move(ds));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user