This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add link about incompatible plugins.
- Loading branch information
1 parent
4396020
commit 7422723
Showing
8 changed files
with
113 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
[ | ||
{ | ||
"Name": "XIV Combo", | ||
"Icon": "https://raw.githubusercontent.com/daemitus/XIVComboPlugin/master/res/icon.png", | ||
"Url": "https://github.com/daemitus/XIVComboPlugin", | ||
"Features": "", | ||
"Type": 2 | ||
}, | ||
{ | ||
"Name": "XIV Sloth Combo", | ||
"Icon": "https://raw.githubusercontent.com/Nik-Potokar/XIVSlothCombo/main/res/plugin/xivslothcombo.png", | ||
"Url": "https://github.com/Nik-Potokar/XIVSlothCombo", | ||
"Features": "", | ||
"Type": 3 | ||
}, | ||
{ | ||
"Name": "BossMod", | ||
"Icon": "https://raw.githubusercontent.com/awgil/ffxiv_bossmod/master/Data/icon.png", | ||
"Url": "https://github.com/awgil/ffxiv_bossmod", | ||
"Features": "Auto Rotation", | ||
"Type": 3 | ||
}, | ||
{ | ||
"Name": "Redirect", | ||
"Icon": "https://raw.githubusercontent.com/cairthenn/Redirect/main/Redirect/icon.png", | ||
"Url": "https://github.com/cairthenn/Redirect", | ||
"Features": "", | ||
"Type": 1 | ||
}, | ||
{ | ||
"Name": "ReAction", | ||
"Icon": "", | ||
"Url": "https://github.com/UnknownX7/ReAction", | ||
"Features": "", | ||
"Type": 1 | ||
}, | ||
{ | ||
"Name": "Simple Tweaks", | ||
"Icon": "https://raw.githubusercontent.com/Caraxi/SimpleTweaksPlugin/main/images/icon.png", | ||
"Url": "https://github.com/Caraxi/SimpleTweaksPlugin/blob/main/Tweaks/TreasureHuntTargets.cs", | ||
"Features": "Block Targeting Treasure Hunt Enemies", | ||
"Type": 4 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Dalamud.Logging; | ||
using RotationSolver.UI; | ||
using System.Text; | ||
|
||
namespace RotationSolver.Helpers; | ||
|
||
public static class DownloadHelper | ||
{ | ||
public static string[] LinkLibraries { get; private set; } | ||
public static IncompatiblePlugin[] IncompatiblePlugins { get; private set; } | ||
|
||
public static async Task DownloadAsync() | ||
{ | ||
LinkLibraries = await DownloadOneAsync<string[]>("https://raw.githubusercontent.com/ArchiDog1998/RotationSolver/main/Resources/downloadList.json"); | ||
IncompatiblePlugins = await DownloadOneAsync<IncompatiblePlugin[]>("https://raw.githubusercontent.com/ArchiDog1998/RotationSolver/main/Resources/IncompatiblePlugins.json"); | ||
} | ||
|
||
private static async Task<T> DownloadOneAsync<T>(string url) | ||
{ | ||
using var client = new HttpClient(); | ||
try | ||
{ | ||
var bts = await client.GetByteArrayAsync(url); | ||
return JsonConvert.DeserializeObject<T>(Encoding.Default.GetString(bts)); | ||
} | ||
catch (Exception ex) | ||
{ | ||
PluginLog.Log(ex, "Failed to load downloading List."); | ||
return default; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters