mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
Fixup for preloading SPRX from MSELF
Forgot to append the offset. Forgot to use different loop variable.
This commit is contained in:
parent
d3bc96a201
commit
bb2cc196a6
1 changed files with 5 additions and 2 deletions
|
@ -2117,7 +2117,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue)
|
||||||
|
|
||||||
if (mself.read(hdr) && hdr.get_count(mself.size()))
|
if (mself.read(hdr) && hdr.get_count(mself.size()))
|
||||||
{
|
{
|
||||||
for (u32 i = 0; i < hdr.count; i++)
|
for (u32 j = 0; j < hdr.count; j++)
|
||||||
{
|
{
|
||||||
mself_record rec{};
|
mself_record rec{};
|
||||||
|
|
||||||
|
@ -2154,7 +2154,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue)
|
||||||
{
|
{
|
||||||
for (usz func_i = fnext++; func_i < file_queue.size(); func_i = fnext++)
|
for (usz func_i = fnext++; func_i < file_queue.size(); func_i = fnext++)
|
||||||
{
|
{
|
||||||
const auto& path = std::as_const(file_queue)[func_i].first;
|
std::string path = std::as_const(file_queue)[func_i].first;
|
||||||
|
|
||||||
ppu_log.notice("Trying to load SPRX: %s", path);
|
ppu_log.notice("Trying to load SPRX: %s", path);
|
||||||
|
|
||||||
|
@ -2165,6 +2165,9 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue)
|
||||||
{
|
{
|
||||||
// Adjust offset for MSELF
|
// Adjust offset for MSELF
|
||||||
src.reset(std::make_unique<file_view>(std::move(src), off));
|
src.reset(std::make_unique<file_view>(std::move(src), off));
|
||||||
|
|
||||||
|
// Adjust path for MSELF too
|
||||||
|
fmt::append(path, "_x%x", off);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some files may fail to decrypt due to the lack of klic
|
// Some files may fail to decrypt due to the lack of klic
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue