Skip to content

Commit

Permalink
Dont always try to get act.dat, and set rap dir
Browse files Browse the repository at this point in the history
This restores how Refresher worked RPCS3-wise before #44
  • Loading branch information
Beyley committed Jan 21, 2024
1 parent 65c4929 commit 4624cdc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Refresher/UI/IntegratedPatchForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,14 @@ protected virtual void GameChanged(object? sender, EventArgs ev)
if (!licenseFile.Contains(contentId))
continue;

//If it is a valid content id, lets download that user's exdata
string downloadedActDat = this.Accessor.DownloadFile(Path.Combine(user, "exdata", "act.dat"));
LibSceToolSharp.SetActDatFilePath(downloadedActDat);
string actDatPath = Path.Combine(user, "exdata", "act.dat");

//If it is a valid content id, lets download that user's act.dat, if its there
if (this.Accessor.FileExists(actDatPath))
{
string downloadedActDat = this.Accessor.DownloadFile(actDatPath);
LibSceToolSharp.SetActDatFilePath(downloadedActDat);
}

//And the license file
string downloadedLicenseFile = this.Accessor.DownloadFile(licenseFile);
Expand All @@ -180,6 +185,7 @@ protected virtual void GameChanged(object? sender, EventArgs ev)
LibSceToolSharp.SetIdpsKey(consolePatchAccessor.IdpsFile.Value);

LibSceToolSharp.SetRifPath(licenseDir);
LibSceToolSharp.SetRapDirectory(licenseDir);
}

this._tempFile = Path.GetTempFileName();
Expand Down

0 comments on commit 4624cdc

Please sign in to comment.