Browse Source

Did some more documenting

Probably ready for a realase
refactor
Anairkoen Schno 5 years ago
parent
commit
b239de7abc
4 changed files with 14 additions and 10 deletions
  1. +1
    -0
      IllusionInjector/IllusionInjector.csproj
  2. +1
    -0
      IllusionInjector/Updating/ModsaberML/Updater.cs
  3. +1
    -9
      IllusionPlugin/BeatSaber/IBeatSaberPlugin.cs
  4. +11
    -1
      IllusionPlugin/BeatSaber/ModsaberModInfo.cs

+ 1
- 0
IllusionInjector/IllusionInjector.csproj View File

@ -35,6 +35,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="I18N">


+ 1
- 0
IllusionInjector/Updating/ModsaberML/Updater.cs View File

@ -60,6 +60,7 @@ namespace IllusionInjector.Updating.ModsaberML
foreach (var plugin in PluginManager.BSMetas)
{
var info = plugin.ModsaberInfo;
if (info == null) continue;
using (var request = UnityWebRequest.Get(ApiEndpoint.ApiBase + string.Format(ApiEndpoint.GetApprovedEndpoint, info.InternalName)))
{


+ 1
- 9
IllusionPlugin/BeatSaber/IBeatSaberPlugin.cs View File

@ -23,16 +23,8 @@ namespace IllusionPlugin
/// </summary>
string Version { get; }
#if OLD_UPDATER
/// <summary>
/// The URI to the update script for the plugin. May be <see langword="null"/>.
/// Actually tho this does nothing I just don't want to try to remove it completely
/// </summary>
Uri UpdateUri { get; }
#endif
/// <summary>
/// Gets the info for the Modsaber release of this plugin.
/// Gets the info for the Modsaber release of this plugin. Return null if there is no Modsaber release.
/// </summary>
ModsaberModInfo ModInfo { get; }


+ 11
- 1
IllusionPlugin/BeatSaber/ModsaberModInfo.cs View File

@ -6,9 +6,19 @@ using System.Threading.Tasks;
namespace IllusionPlugin.BeatSaber
{
public struct ModsaberModInfo
/// <summary>
/// A class to provide information about a mod on ModSaber.ML
/// </summary>
public class ModsaberModInfo
{
/// <summary>
/// The name the mod uses on ModSaber as an identifier.
/// </summary>
public string InternalName { get; set; }
/// <summary>
/// The version of the currently installed mod. Used to compare to the version on ModSaber.
/// </summary>
public Version CurrentVersion { get; set; }
}
}

Loading…
Cancel
Save