mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 06:27:43 +00:00
Refactor for original/pc dataspec handling
This commit is contained in:
@@ -103,11 +103,7 @@ struct SpecMP3 : SpecBase
|
||||
{
|
||||
for (const hecl::SystemString& arg : args)
|
||||
{
|
||||
#if HECL_UCS2
|
||||
std::string lowerArg = hecl::WideToUTF8(arg);
|
||||
#else
|
||||
std::string lowerArg = arg;
|
||||
#endif
|
||||
std::string lowerArg = hecl::SystemUTF8View(arg).str();
|
||||
std::transform(lowerArg.begin(), lowerArg.end(), lowerArg.begin(), tolower);
|
||||
if (!lowerArg.compare(0, lowerBase.size(), lowerBase))
|
||||
good = true;
|
||||
@@ -493,4 +489,12 @@ hecl::Database::DataSpecEntry SpecEntMP3
|
||||
-> hecl::Database::IDataSpec* {return new struct SpecMP3(project);}
|
||||
);
|
||||
|
||||
hecl::Database::DataSpecEntry SpecEntMP3PC =
|
||||
{
|
||||
_S("MP3-PC"),
|
||||
_S("Data specification for PC-optimized Metroid Prime 3 engine"),
|
||||
[](hecl::Database::Project& project, hecl::Database::DataSpecTool)
|
||||
-> hecl::Database::IDataSpec* {return nullptr;}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user