Add Sea of Stars as accepted repo.

This commit is contained in:
Ottermandias 2023-05-30 23:37:04 +02:00
parent 9fb5ac65d1
commit 81891cfe09
2 changed files with 7 additions and 6 deletions

View file

@ -10,9 +10,10 @@ namespace Penumbra.Services;
public class ValidityChecker public class ValidityChecker
{ {
public const string Repository = "https://raw.githubusercontent.com/xivdev/Penumbra/master/repo.json"; public const string Repository = "https://raw.githubusercontent.com/xivdev/Penumbra/master/repo.json";
public const string RepositoryLower = "https://raw.githubusercontent.com/xivdev/penumbra/master/repo.json"; public const string SeaOfStars = "https://raw.githubusercontent.com/Ottermandias/SeaOfStars/main/repo.json";
public const string TestRepositoryLower = "https://raw.githubusercontent.com/xivdev/penumbra/test/repo.json"; public const string RepositoryLower = "https://raw.githubusercontent.com/xivdev/penumbra/master/repo.json";
public const string SeaOfStarsLower = "https://raw.githubusercontent.com/ottermandias/seaofstars/main/repo.json";
public readonly bool DevPenumbraExists; public readonly bool DevPenumbraExists;
public readonly bool IsNotInstalledPenumbra; public readonly bool IsNotInstalledPenumbra;
@ -82,11 +83,11 @@ public class ValidityChecker
private static bool CheckSourceRepo( DalamudPluginInterface pi ) private static bool CheckSourceRepo( DalamudPluginInterface pi )
{ {
#if !DEBUG #if !DEBUG
return pi.SourceRepository.Trim().ToLowerInvariant() switch return pi.SourceRepository?.Trim().ToLowerInvariant() switch
{ {
null => false, null => false,
RepositoryLower => true, RepositoryLower => true,
TestRepositoryLower => true, SeaOfStarsLower => true,
_ => false, _ => false,
}; };
#else #else

View file

@ -88,7 +88,7 @@ public sealed class ConfigWindow : Window
{ {
DrawProblemWindow( DrawProblemWindow(
$"You are loading a release version of Penumbra from the repository \"{_pluginInterface.SourceRepository}\" instead of the official repository.\n" $"You are loading a release version of Penumbra from the repository \"{_pluginInterface.SourceRepository}\" instead of the official repository.\n"
+ $"Please use the official repository at {ValidityChecker.Repository}.\n\n" + $"Please use the official repository at {ValidityChecker.Repository} or the suite repository at {ValidityChecker.SeaOfStars}.\n\n"
+ "If you are developing for Penumbra and see this, you should compile your version in debug mode to avoid it."); + "If you are developing for Penumbra and see this, you should compile your version in debug mode to avoid it.");
} }
else if (_validityChecker.IsNotInstalledPenumbra) else if (_validityChecker.IsNotInstalledPenumbra)