mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 06:46:24 +02:00
UI: Scanning for mods on DLC content
This commit is contained in:
parent
e02ef52069
commit
a624fe64b9
5 changed files with 35 additions and 13 deletions
|
@ -296,7 +296,7 @@ namespace Ryujinx.HLE.HOS
|
|||
AddModsFromDirectory(mods, applicationDir, modMetadata);
|
||||
}
|
||||
|
||||
public static void QueryContentsDir(ModCache mods, DirectoryInfo contentsDir, ulong applicationId)
|
||||
public static void QueryContentsDir(ModCache mods, DirectoryInfo contentsDir, ulong applicationId, ulong[] installedDlcs)
|
||||
{
|
||||
if (!contentsDir.Exists)
|
||||
{
|
||||
|
@ -311,6 +311,16 @@ namespace Ryujinx.HLE.HOS
|
|||
{
|
||||
QueryApplicationDir(mods, applicationDir, applicationId);
|
||||
}
|
||||
|
||||
foreach (ulong installedDlcId in installedDlcs)
|
||||
{
|
||||
DirectoryInfo dlcModDir = FindApplicationDir(contentsDir, $"{installedDlcId:x16}");
|
||||
|
||||
if (dlcModDir != null)
|
||||
{
|
||||
QueryApplicationDir(mods, dlcModDir, applicationId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static int QueryCheatsDir(ModCache mods, DirectoryInfo cheatsDir)
|
||||
|
@ -417,7 +427,7 @@ namespace Ryujinx.HLE.HOS
|
|||
{
|
||||
foreach ((ulong applicationId, ModCache cache) in modCaches)
|
||||
{
|
||||
QueryContentsDir(cache, searchDir, applicationId);
|
||||
QueryContentsDir(cache, searchDir, applicationId, Array.Empty<ulong>());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue