mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-31 01:59:59 -06:00
UI: Scanning for mods on DLC content
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user