Skip to content

Commit

Permalink
Add Sea of Stars as accepted repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed May 30, 2023
1 parent 9fb5ac6 commit 81891cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Penumbra/Services/ValidityChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ namespace Penumbra.Services;

public class ValidityChecker
{
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 TestRepositoryLower = "https://raw.githubusercontent.com/xivdev/penumbra/test/repo.json";
public const string Repository = "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 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 IsNotInstalledPenumbra;
Expand Down Expand Up @@ -82,11 +83,11 @@ private static bool CheckIsNotInstalled( DalamudPluginInterface pi )
private static bool CheckSourceRepo( DalamudPluginInterface pi )
{
#if !DEBUG
return pi.SourceRepository.Trim().ToLowerInvariant() switch
return pi.SourceRepository?.Trim().ToLowerInvariant() switch
{
null => false,
RepositoryLower => true,
TestRepositoryLower => true,
SeaOfStarsLower => true,
_ => false,
};
#else
Expand Down
2 changes: 1 addition & 1 deletion Penumbra/UI/ConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public override void Draw()
{
DrawProblemWindow(
$"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.");
}
else if (_validityChecker.IsNotInstalledPenumbra)
Expand Down

0 comments on commit 81891cf

Please sign in to comment.