mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Created GetModFiles NexusApi function
This commit is contained in:
parent
609c5d309b
commit
68f800e783
@ -222,7 +222,6 @@ namespace Wabbajack.Lib.NexusApi
|
||||
|
||||
}
|
||||
|
||||
|
||||
public string GetNexusDownloadLink(NexusDownloader.State archive, bool cache = false)
|
||||
{
|
||||
if (cache && TryGetCachedLink(archive, out var result))
|
||||
@ -269,7 +268,13 @@ namespace Wabbajack.Lib.NexusApi
|
||||
return GetCached<GetModFilesResponse>(url).files;
|
||||
}
|
||||
|
||||
public ModInfo GetModInfo(Game game, string modId)
|
||||
public List<NexusFile> GetModFiles(string gameName, string modID)
|
||||
{
|
||||
var url = $"https://api.nexusmods.com/v1/games/{gameName}/mods/{modID}/files.json";
|
||||
return Get<List<NexusFile>>(url);
|
||||
}
|
||||
|
||||
public ModInfo GetModInfo(string gameName, string modId)
|
||||
{
|
||||
var url = $"https://api.nexusmods.com/v1/games/{GameRegistry.Games[game].NexusName}/mods/{modId}.json";
|
||||
return GetCached<ModInfo>(url);
|
||||
|
Loading…
Reference in New Issue
Block a user