Skip to content

Commit

Permalink
Merge pull request #45 from LittleBigRefresh/fix-rpcs3
Browse files Browse the repository at this point in the history
Dont always try to get act.dat, and set rap dir
  • Loading branch information
jvyden authored Jan 21, 2024
2 parents 65c4929 + 4624cdc commit 12eab81
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 12eab81

Please sign in to comment.