Skip to content

Conversation

@HeroponRikiBestest
Copy link
Contributor

Waiting on SabreTools/SabreTools.RedumpLib#13, plus everything that PR is waiting on, plus the same requirements for this PR.

/// </summary>
/// <param name="drive">Drive to extract information from</param>
/// <returns>Steam2 information on success, null otherwise</returns>
public static string? GetSteam2Info(Drive? drive)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All 3 steam methods contain a lot of duplicated code. Would you prefer me to create helper methods, or would that be out of line for the style of PhysicalTool.cs?


// ? needed due to note in note in https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles
#if NETFRAMEWORK
string[] sisPaths = Directory.GetFiles(drive.Name, "?*.sis", SearchOption.AllDirectories);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any non-annoying way to recurse in netframework?

if (upper["depots"] == null)
continue;

var depotArr = upper["depots"]?.ToObject<Dictionary<string, string>>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any idea why I still need to use conditional access on upper["depots"] even though I did upper["depots"] == null just above?

@HeroponRikiBestest
Copy link
Contributor Author

PR is ready for review. Let me know if there's anything I still need to do, this should be fully complete. (Aside from waiting on the Serialization and Redumplib PRs. To be clear, I've already tested locally with both of them hooked up.)

@HeroponRikiBestest HeroponRikiBestest marked this pull request as ready for review January 18, 2026 21:59
@HeroponRikiBestest
Copy link
Contributor Author

Closing because I cannot merge properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants