mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +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 class Penumbra : IDalamudPlugin
|
||||||
{
|
{
|
||||||
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 TestRepositoryLower = "https://raw.githubusercontent.com/xivdev/penumbra/test/repo.json";
|
||||||
|
|
||||||
public string Name
|
public string Name
|
||||||
=> "Penumbra";
|
=> "Penumbra";
|
||||||
|
|
@ -588,8 +590,11 @@ public class Penumbra : IDalamudPlugin
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
var checkedDirectory = Dalamud.PluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Name;
|
var checkedDirectory = Dalamud.PluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Name;
|
||||||
var ret = checkedDirectory?.Equals( "installedPlugins", StringComparison.OrdinalIgnoreCase ) ?? false;
|
var ret = checkedDirectory?.Equals( "installedPlugins", StringComparison.OrdinalIgnoreCase ) ?? false;
|
||||||
if (!ret)
|
if( !ret )
|
||||||
Log.Error($"Penumbra is not correctly installed. Application loaded from \"{Dalamud.PluginInterface.AssemblyLocation.Directory!.FullName}\"." );
|
{
|
||||||
|
Log.Error( $"Penumbra is not correctly installed. Application loaded from \"{Dalamud.PluginInterface.AssemblyLocation.Directory!.FullName}\"." );
|
||||||
|
}
|
||||||
|
|
||||||
return !ret;
|
return !ret;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -603,8 +608,8 @@ public class Penumbra : IDalamudPlugin
|
||||||
return Dalamud.PluginInterface.SourceRepository.Trim().ToLowerInvariant() switch
|
return Dalamud.PluginInterface.SourceRepository.Trim().ToLowerInvariant() switch
|
||||||
{
|
{
|
||||||
null => false,
|
null => false,
|
||||||
Repository => true,
|
RepositoryLower => true,
|
||||||
"https://raw.githubusercontent.com/xivdev/Penumbra/test/repo.json" => true,
|
TestRepositoryLower => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue