PPU LLVM: Relax MSELF entry name constraints

These names are a hint
This commit is contained in:
Eladash 2024-02-16 09:14:47 +02:00 committed by Elad.Ash
parent 36ab866c2c
commit f47c7e0ef1

View file

@ -3821,14 +3821,14 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
upper = fmt::to_upper(name);
if (upper.ends_with(".SPRX"))
if (upper.find(".SPRX") != umax || upper.find(".PRX") != umax)
{
// .sprx inside .mself found
file_queue.emplace_back(dir_queue[i] + entry.name, rec.off, rec.size);
continue;
}
if (upper.ends_with(".SELF"))
if (upper.find(".SELF") != umax || upper.find(".ELF") != umax)
{
// .self inside .mself found
file_queue.emplace_back(dir_queue[i] + entry.name, rec.off, rec.size);