mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 18:39:57 +00:00
PPU LLVM: Do not use possible duplicates in MSELF
This commit is contained in:
parent
27ea25a999
commit
f943deb2c3
@ -3798,8 +3798,21 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||
{
|
||||
mself_record rec{};
|
||||
|
||||
std::set<u64> offs;
|
||||
|
||||
if (mself.read(rec) && rec.get_pos(mself.size()))
|
||||
{
|
||||
if (rec.size <= 0x20)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!offs.emplace(rec.off).second)
|
||||
{
|
||||
// Duplicate
|
||||
continue;
|
||||
}
|
||||
|
||||
// Read characters safely
|
||||
std::string name(sizeof(rec.name), '\0');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user