mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
PPU LLVM: Do not use possible duplicates in MSELF
This commit is contained in:
parent
27ea25a999
commit
f943deb2c3
1 changed files with 13 additions and 0 deletions
|
@ -3798,8 +3798,21 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
{
|
{
|
||||||
mself_record rec{};
|
mself_record rec{};
|
||||||
|
|
||||||
|
std::set<u64> offs;
|
||||||
|
|
||||||
if (mself.read(rec) && rec.get_pos(mself.size()))
|
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
|
// Read characters safely
|
||||||
std::string name(sizeof(rec.name), '\0');
|
std::string name(sizeof(rec.name), '\0');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue