mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix the dumb
This commit is contained in:
parent
972187d8ed
commit
5df00b0c7f
1 changed files with 15 additions and 10 deletions
|
|
@ -35,6 +35,8 @@ namespace Penumbra;
|
|||
public class Penumbra : IDalamudPlugin
|
||||
{
|
||||
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 string Name
|
||||
=> "Penumbra";
|
||||
|
|
@ -589,7 +591,10 @@ public class Penumbra : IDalamudPlugin
|
|||
var checkedDirectory = Dalamud.PluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Name;
|
||||
var ret = checkedDirectory?.Equals( "installedPlugins", StringComparison.OrdinalIgnoreCase ) ?? false;
|
||||
if( !ret )
|
||||
{
|
||||
Log.Error( $"Penumbra is not correctly installed. Application loaded from \"{Dalamud.PluginInterface.AssemblyLocation.Directory!.FullName}\"." );
|
||||
}
|
||||
|
||||
return !ret;
|
||||
#else
|
||||
return false;
|
||||
|
|
@ -603,8 +608,8 @@ public class Penumbra : IDalamudPlugin
|
|||
return Dalamud.PluginInterface.SourceRepository.Trim().ToLowerInvariant() switch
|
||||
{
|
||||
null => false,
|
||||
Repository => true,
|
||||
"https://raw.githubusercontent.com/xivdev/Penumbra/test/repo.json" => true,
|
||||
RepositoryLower => true,
|
||||
TestRepositoryLower => true,
|
||||
_ => false,
|
||||
};
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue