mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Some small fixes.
This commit is contained in:
parent
68a725d51d
commit
cbdac759b3
4 changed files with 5 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ public class MetaFileInfo
|
|||
public MetaFileInfo( string fileName )
|
||||
{
|
||||
// Set the primary type from the gamePath start.
|
||||
PrimaryType = GameData.GameData.GetGamePathParser().PathToObjectType( fileName );
|
||||
PrimaryType = Penumbra.GamePathParser.PathToObjectType( fileName );
|
||||
PrimaryId = 0;
|
||||
SecondaryType = BodySlot.Unknown;
|
||||
SecondaryId = 0;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using Penumbra.Api.Enums;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Import;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public partial class CombinedTexture : IDisposable
|
|||
{
|
||||
AsIs,
|
||||
Bitmap,
|
||||
BC5,
|
||||
BC3,
|
||||
BC7,
|
||||
}
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ public partial class CombinedTexture : IDisposable
|
|||
{
|
||||
TextureSaveType.AsIs => _current.Type is Texture.FileType.Bitmap or Texture.FileType.Png ? CreateUncompressed( s, mipMaps ) : s,
|
||||
TextureSaveType.Bitmap => CreateUncompressed( s, mipMaps ),
|
||||
TextureSaveType.BC5 => CreateCompressed( s, mipMaps, false ),
|
||||
TextureSaveType.BC3 => CreateCompressed( s, mipMaps, false ),
|
||||
TextureSaveType.BC7 => CreateCompressed( s, mipMaps, true ),
|
||||
_ => throw new ArgumentOutOfRangeException( nameof( type ), type, null ),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public class Penumbra : IDalamudPlugin
|
|||
public static FrameworkManager Framework { get; private set; } = null!;
|
||||
public static ActorManager Actors { get; private set; } = null!;
|
||||
public static IObjectIdentifier Identifier { get; private set; } = null!;
|
||||
public static IGamePathParser GamePathParser { get; private set; } = null!;
|
||||
|
||||
public static readonly List< Exception > ImcExceptions = new();
|
||||
|
||||
|
|
@ -83,6 +84,7 @@ public class Penumbra : IDalamudPlugin
|
|||
Dalamud.Initialize( pluginInterface );
|
||||
Log = new Logger();
|
||||
Identifier = GameData.GameData.GetIdentifier( Dalamud.PluginInterface, Dalamud.GameData );
|
||||
GamePathParser = GameData.GameData.GetGamePathParser();
|
||||
DevPenumbraExists = CheckDevPluginPenumbra();
|
||||
IsNotInstalledPenumbra = CheckIsNotInstalled();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue