mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Use custom logger everywhere.
This commit is contained in:
parent
fabbeeae13
commit
72ef666d51
87 changed files with 276 additions and 371 deletions
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
|||
Subproject commit 988c8291bb09649712bf89334869c1f4f5ce356d
|
||||
Subproject commit 44dc1f51fe7900a1fe0e3368c4c5c00b6f866325
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using Penumbra.GameData.Util;
|
||||
|
||||
namespace Penumbra.GameData.ByteString;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
using System;
|
||||
|
||||
namespace Penumbra.GameData.Enums;
|
||||
|
||||
public enum ObjectType : byte
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Dalamud;
|
||||
using Dalamud.Data;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Lumina.Data;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Reflection;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Plugin.Ipc;
|
||||
using ImGuiNET;
|
||||
|
|
@ -17,6 +9,12 @@ using Penumbra.Collections;
|
|||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
@ -124,7 +122,7 @@ public class IpcTester : IDisposable
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error during IPC Tests:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error during IPC Tests:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using EmbedIO;
|
||||
using EmbedIO.Routing;
|
||||
using EmbedIO.WebApi;
|
||||
using System.Linq;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Logging;
|
||||
using Lumina.Data;
|
||||
using Newtonsoft.Json;
|
||||
using OtterGui;
|
||||
|
|
@ -16,6 +9,12 @@ using Penumbra.Interop.Resolver;
|
|||
using Penumbra.Interop.Structs;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
@ -206,12 +205,12 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
|||
return collection.ChangedItems.ToDictionary( kvp => kvp.Key, kvp => kvp.Value.Item2 );
|
||||
}
|
||||
|
||||
PluginLog.Warning( $"Collection {collectionName} does not exist or is not loaded." );
|
||||
Penumbra.Log.Warning( $"Collection {collectionName} does not exist or is not loaded." );
|
||||
return new Dictionary< string, object? >();
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not obtain Changed Items for {collectionName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not obtain Changed Items for {collectionName}:\n{e}" );
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
@ -619,7 +618,7 @@ public class PenumbraApi : IDisposable, IPenumbraApi
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning( $"Could not load file {resolvedPath}:\n{e}" );
|
||||
Penumbra.Log.Warning( $"Could not load file {resolvedPath}:\n{e}" );
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Plugin.Ipc;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.GameData.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
@ -73,7 +72,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderInitialized}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderInitialized}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -82,7 +81,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderDisposed}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderDisposed}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -90,13 +89,13 @@ public partial class PenumbraIpc
|
|||
ProviderApiVersion = pi.GetIpcProvider< int >( LabelProviderApiVersion );
|
||||
ProviderApiVersion.RegisterFunc( () =>
|
||||
{
|
||||
PluginLog.Warning( $"{LabelProviderApiVersion} is outdated. Please use {LabelProviderApiVersions} instead." );
|
||||
Penumbra.Log.Warning( $"{LabelProviderApiVersion} is outdated. Please use {LabelProviderApiVersions} instead." );
|
||||
return Api.ApiVersion.Breaking;
|
||||
} );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderApiVersion}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderApiVersion}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -106,7 +105,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderApiVersions}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderApiVersions}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -116,7 +115,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetModDirectory}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetModDirectory}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -126,7 +125,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderModDirectoryChanged}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderModDirectoryChanged}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -136,7 +135,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetConfiguration}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetConfiguration}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -146,7 +145,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderPreSettingsDraw}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderPreSettingsDraw}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -156,7 +155,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderPostSettingsDraw}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderPostSettingsDraw}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -215,7 +214,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRedrawName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRedrawName}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -225,7 +224,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRedrawObject}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRedrawObject}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -235,7 +234,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRedrawName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRedrawName}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -245,7 +244,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRedrawAll}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRedrawAll}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -255,7 +254,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGameObjectRedrawn}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGameObjectRedrawn}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -305,7 +304,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderResolveDefault}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderResolveDefault}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -315,7 +314,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderResolveCharacter}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderResolveCharacter}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -325,7 +324,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderResolveCharacter}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderResolveCharacter}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -335,7 +334,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetDrawObjectInfo}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetDrawObjectInfo}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -345,7 +344,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetCutsceneParentIndex}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetCutsceneParentIndex}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -355,7 +354,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderReverseResolvePath}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderReverseResolvePath}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -365,7 +364,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderReverseResolvePlayerPath}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderReverseResolvePlayerPath}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -376,7 +375,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderCreatingCharacterBase}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderCreatingCharacterBase}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -387,7 +386,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderCreatedCharacterBase}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderCreatedCharacterBase}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -398,7 +397,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGameObjectResourcePathResolved}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGameObjectResourcePathResolved}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -462,7 +461,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderChangedItemTooltip}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderChangedItemTooltip}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -472,7 +471,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderChangedItemClick}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderChangedItemClick}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -482,7 +481,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderChangedItemClick}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderChangedItemClick}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -521,7 +520,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetMods}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetMods}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -531,7 +530,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetCollections}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetCollections}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -541,7 +540,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderCurrentCollectionName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderCurrentCollectionName}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -551,7 +550,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderDefaultCollectionName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderDefaultCollectionName}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -561,7 +560,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderCharacterCollectionName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderCharacterCollectionName}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -571,7 +570,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetPlayerMetaManipulations}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetPlayerMetaManipulations}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -581,7 +580,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetMetaManipulations}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetMetaManipulations}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -633,7 +632,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderModSettingChanged}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderModSettingChanged}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -645,7 +644,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetAvailableModSettings}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetAvailableModSettings}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -655,7 +654,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderReloadMod}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderReloadMod}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -665,7 +664,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderChangedItemClick}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderChangedItemClick}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -677,7 +676,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderGetCurrentModSettings}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderGetCurrentModSettings}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -687,7 +686,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderTryInheritMod}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderTryInheritMod}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -697,7 +696,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderTrySetMod}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderTrySetMod}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -707,7 +706,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderTrySetModPriority}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderTrySetModPriority}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -718,7 +717,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderTrySetModSetting}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderTrySetModSetting}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -729,7 +728,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderTrySetModSettings}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderTrySetModSettings}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -782,7 +781,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderCreateTemporaryCollection}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderCreateTemporaryCollection}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -793,7 +792,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRemoveTemporaryCollection}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRemoveTemporaryCollection}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -805,7 +804,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderAddTemporaryModAll}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderAddTemporaryModAll}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -817,7 +816,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderAddTemporaryMod}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderAddTemporaryMod}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -827,7 +826,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRemoveTemporaryModAll}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRemoveTemporaryModAll}:\n{e}" );
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -837,7 +836,7 @@ public partial class PenumbraIpc
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error registering IPC provider for {LabelProviderRemoveTemporaryMod}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error registering IPC provider for {LabelProviderRemoveTemporaryMod}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using System.Threading.Tasks;
|
||||
using EmbedIO;
|
||||
using EmbedIO.Routing;
|
||||
using EmbedIO.WebApi;
|
||||
using Penumbra.GameData.Enums;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using OtterGui;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -197,7 +196,7 @@ public partial class ModCollection
|
|||
var defaultIdx = GetIndexForCollectionName( defaultName );
|
||||
if( defaultIdx < 0 )
|
||||
{
|
||||
PluginLog.Error( $"Last choice of {ConfigWindow.DefaultCollection} {defaultName} is not available, reset to {Empty.Name}." );
|
||||
Penumbra.Log.Error( $"Last choice of {ConfigWindow.DefaultCollection} {defaultName} is not available, reset to {Empty.Name}." );
|
||||
Default = Empty;
|
||||
configChanged = true;
|
||||
}
|
||||
|
|
@ -211,7 +210,7 @@ public partial class ModCollection
|
|||
var currentIdx = GetIndexForCollectionName( currentName );
|
||||
if( currentIdx < 0 )
|
||||
{
|
||||
PluginLog.Error( $"Last choice of {ConfigWindow.SelectedCollection} {currentName} is not available, reset to {DefaultCollection}." );
|
||||
Penumbra.Log.Error( $"Last choice of {ConfigWindow.SelectedCollection} {currentName} is not available, reset to {DefaultCollection}." );
|
||||
Current = DefaultName;
|
||||
configChanged = true;
|
||||
}
|
||||
|
|
@ -229,7 +228,7 @@ public partial class ModCollection
|
|||
var idx = GetIndexForCollectionName( typeName );
|
||||
if( idx < 0 )
|
||||
{
|
||||
PluginLog.Error( $"Last choice of {type.ToName()} Collection {typeName} is not available, removed." );
|
||||
Penumbra.Log.Error( $"Last choice of {type.ToName()} Collection {typeName} is not available, removed." );
|
||||
configChanged = true;
|
||||
}
|
||||
else
|
||||
|
|
@ -246,7 +245,7 @@ public partial class ModCollection
|
|||
var idx = GetIndexForCollectionName( collectionName );
|
||||
if( idx < 0 )
|
||||
{
|
||||
PluginLog.Error( $"Last choice of <{player}>'s Collection {collectionName} is not available, reset to {Empty.Name}." );
|
||||
Penumbra.Log.Error( $"Last choice of <{player}>'s Collection {collectionName} is not available, reset to {Empty.Name}." );
|
||||
_characters.Add( player, Empty );
|
||||
configChanged = true;
|
||||
}
|
||||
|
|
@ -306,11 +305,11 @@ public partial class ModCollection
|
|||
|
||||
j.WriteEndObject();
|
||||
j.WriteEndObject();
|
||||
PluginLog.Verbose( "Active Collections saved." );
|
||||
Penumbra.Log.Verbose( "Active Collections saved." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not save active collections to file {file}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not save active collections to file {file}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -328,7 +327,7 @@ public partial class ModCollection
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not read active collections from file {file}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not read active collections from file {file}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
using OtterGui;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -107,7 +106,7 @@ public partial class ModCollection
|
|||
{
|
||||
if( !CanAddCollection( name, out var fixedName ) )
|
||||
{
|
||||
PluginLog.Warning( $"The new collection {name} would lead to the same path {fixedName} as one that already exists." );
|
||||
Penumbra.Log.Warning( $"The new collection {name} would lead to the same path {fixedName} as one that already exists." );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +114,7 @@ public partial class ModCollection
|
|||
newCollection.Index = _collections.Count;
|
||||
_collections.Add( newCollection );
|
||||
newCollection.Save();
|
||||
PluginLog.Debug( "Added collection {Name:l}.", newCollection.AnonymizedName );
|
||||
Penumbra.Log.Debug( $"Added collection {newCollection.AnonymizedName}." );
|
||||
CollectionChanged.Invoke( CollectionType.Inactive, null, newCollection );
|
||||
SetCollection( newCollection.Index, CollectionType.Current );
|
||||
return true;
|
||||
|
|
@ -128,13 +127,13 @@ public partial class ModCollection
|
|||
{
|
||||
if( idx <= Empty.Index || idx >= _collections.Count )
|
||||
{
|
||||
PluginLog.Error( "Can not remove the empty collection." );
|
||||
Penumbra.Log.Error( "Can not remove the empty collection." );
|
||||
return false;
|
||||
}
|
||||
|
||||
if( idx == DefaultName.Index )
|
||||
{
|
||||
PluginLog.Error( "Can not remove the default collection." );
|
||||
Penumbra.Log.Error( "Can not remove the default collection." );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -179,7 +178,7 @@ public partial class ModCollection
|
|||
}
|
||||
}
|
||||
|
||||
PluginLog.Debug( "Removed collection {Name:l}.", collection.AnonymizedName );
|
||||
Penumbra.Log.Debug( $"Removed collection {collection.AnonymizedName}." );
|
||||
CollectionChanged.Invoke( CollectionType.Inactive, collection, null );
|
||||
return true;
|
||||
}
|
||||
|
|
@ -335,12 +334,12 @@ public partial class ModCollection
|
|||
if( !ByName( subCollectionName, out var subCollection ) )
|
||||
{
|
||||
changes = true;
|
||||
PluginLog.Warning( $"Inherited collection {subCollectionName} for {collection.Name} does not exist, removed." );
|
||||
Penumbra.Log.Warning( $"Inherited collection {subCollectionName} for {collection.Name} does not exist, removed." );
|
||||
}
|
||||
else if( !collection.AddInheritance( subCollection ) )
|
||||
{
|
||||
changes = true;
|
||||
PluginLog.Warning( $"{collection.Name} can not inherit from {subCollectionName}, removed." );
|
||||
Penumbra.Log.Warning( $"{collection.Name} can not inherit from {subCollectionName}, removed." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -370,12 +369,12 @@ public partial class ModCollection
|
|||
|
||||
if( file.Name != $"{collection.Name.RemoveInvalidPathSymbols()}.json" )
|
||||
{
|
||||
PluginLog.Warning( $"Collection {file.Name} does not correspond to {collection.Name}." );
|
||||
Penumbra.Log.Warning( $"Collection {file.Name} does not correspond to {collection.Name}." );
|
||||
}
|
||||
|
||||
if( this[ collection.Name ] != null )
|
||||
{
|
||||
PluginLog.Warning( $"Duplicate collection found: {collection.Name} already exists." );
|
||||
Penumbra.Log.Warning( $"Duplicate collection found: {collection.Name} already exists." );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using Penumbra.GameData.Enums;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui.Classes;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.Meta.Manager;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -29,7 +27,7 @@ public partial class ModCollection
|
|||
if( _cache == null )
|
||||
{
|
||||
CalculateEffectiveFileList();
|
||||
PluginLog.Verbose( "Created new cache for collection {Name:l}.", Name );
|
||||
Penumbra.Log.Verbose( $"Created new cache for collection {Name}." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -61,7 +59,7 @@ public partial class ModCollection
|
|||
{
|
||||
_cache?.Dispose();
|
||||
_cache = null;
|
||||
PluginLog.Verbose( "Cleared cache of collection {Name:l}.", Name );
|
||||
Penumbra.Log.Verbose( $"Cleared cache of collection {Name}." );
|
||||
}
|
||||
|
||||
public IEnumerable< Utf8GamePath > ReverseResolvePath( FullPath path )
|
||||
|
|
@ -87,7 +85,7 @@ public partial class ModCollection
|
|||
return true;
|
||||
}
|
||||
|
||||
PluginLog.Error( $"The redirected path is too long to add the redirection\n\t{path}\n\t--> {fullPath}" );
|
||||
Penumbra.Log.Error( $"The redirected path is too long to add the redirection\n\t{path}\n\t--> {fullPath}" );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -125,13 +123,11 @@ public partial class ModCollection
|
|||
return;
|
||||
}
|
||||
|
||||
PluginLog.Debug( "[{Thread}] Recalculating effective file list for {CollectionName:l}",
|
||||
Thread.CurrentThread.ManagedThreadId, AnonymizedName );
|
||||
Penumbra.Log.Debug( $"[{Thread.CurrentThread.ManagedThreadId}] Recalculating effective file list for {AnonymizedName}" );
|
||||
_cache ??= new Cache( this );
|
||||
_cache.FullRecalculation();
|
||||
|
||||
PluginLog.Debug( "[{Thread}] Recalculation of effective file list for {CollectionName:l} finished.",
|
||||
Thread.CurrentThread.ManagedThreadId, AnonymizedName );
|
||||
Penumbra.Log.Debug( $"[{Thread.CurrentThread.ManagedThreadId}] Recalculation of effective file list for {AnonymizedName} finished." );
|
||||
}
|
||||
|
||||
// Set Metadata files.
|
||||
|
|
@ -204,7 +200,7 @@ public partial class ModCollection
|
|||
else
|
||||
{
|
||||
_cache.MetaManipulations.SetFiles();
|
||||
PluginLog.Debug( "Set CharacterUtility resources for collection {Name:l}.", Name );
|
||||
Penumbra.Log.Debug( $"Set CharacterUtility resources for collection {Name}." );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.Meta.Manager;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -496,7 +495,7 @@ public partial class ModCollection
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Unknown Error:\n{e}" );
|
||||
Penumbra.Log.Error( $"Unknown Error:\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -67,7 +66,7 @@ public partial class ModCollection
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not save collection {AnonymizedName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not save collection {AnonymizedName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -90,11 +89,11 @@ public partial class ModCollection
|
|||
try
|
||||
{
|
||||
file.Delete();
|
||||
PluginLog.Information( "Deleted collection file for {Name:l}.", AnonymizedName );
|
||||
Penumbra.Log.Information( $"Deleted collection file for {AnonymizedName}." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete collection file for {AnonymizedName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete collection file for {AnonymizedName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -105,7 +104,7 @@ public partial class ModCollection
|
|||
inheritance = Array.Empty< string >();
|
||||
if( !file.Exists )
|
||||
{
|
||||
PluginLog.Error( $"Could not read collection because file does not exist." );
|
||||
Penumbra.Log.Error( "Could not read collection because file does not exist." );
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -123,7 +122,7 @@ public partial class ModCollection
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not read collection information from file:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not read collection information from file:\n{e}" );
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
@ -81,7 +80,7 @@ public partial class ModCollection
|
|||
collection.ModSettingChanged += OnInheritedModSettingChange;
|
||||
collection.InheritanceChanged += OnInheritedInheritanceChange;
|
||||
InheritanceChanged.Invoke( false );
|
||||
PluginLog.Debug( "Added {InheritedName:l} to {Name:l} inheritances.", collection.AnonymizedName, AnonymizedName );
|
||||
Penumbra.Log.Debug( $"Added {collection.AnonymizedName} to {AnonymizedName} inheritances." );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +90,7 @@ public partial class ModCollection
|
|||
ClearSubscriptions( inheritance );
|
||||
_inheritance.RemoveAt( idx );
|
||||
InheritanceChanged.Invoke( false );
|
||||
PluginLog.Debug( "Removed {InheritedName:l} from {Name:l} inheritances.", inheritance.AnonymizedName, AnonymizedName );
|
||||
Penumbra.Log.Debug( $"Removed {inheritance.AnonymizedName} from {AnonymizedName} inheritances." );
|
||||
}
|
||||
|
||||
private void ClearSubscriptions( ModCollection other )
|
||||
|
|
@ -106,7 +105,7 @@ public partial class ModCollection
|
|||
if( _inheritance.Move( from, to ) )
|
||||
{
|
||||
InheritanceChanged.Invoke( false );
|
||||
PluginLog.Debug( "Moved {Name:l}s inheritance {From} to {To}.", AnonymizedName, from, to );
|
||||
Penumbra.Log.Debug( $"Moved {AnonymizedName}s inheritance {from} to {to}." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -122,7 +121,7 @@ public partial class ModCollection
|
|||
default:
|
||||
if( modIdx < 0 || modIdx >= _settings.Count )
|
||||
{
|
||||
PluginLog.Warning(
|
||||
Penumbra.Log.Warning(
|
||||
$"Collection state broken, Mod {modIdx} in inheritance does not exist. ({_settings.Count} mods exist)." );
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using Penumbra.Mods;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Collections;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui.Filesystem;
|
||||
|
|
@ -126,7 +125,7 @@ public partial class Configuration
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete the outdated penumbrametatmp folder:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete the outdated penumbrametatmp folder:\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -153,7 +152,7 @@ public partial class Configuration
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error(
|
||||
Penumbra.Log.Error(
|
||||
$"Could not transfer forced collection {ForcedCollection} to inheritance of collection {collection}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
|
@ -258,7 +257,7 @@ public partial class Configuration
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not migrate the old collection file to new collection files:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not migrate the old collection file to new collection files:\n{e}" );
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
@ -274,7 +273,7 @@ public partial class Configuration
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not create backup copy of config at {bakName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not create backup copy of config at {bakName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Configuration;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
|
|
@ -78,7 +77,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
{
|
||||
void HandleDeserializationError( object? sender, ErrorEventArgs errorArgs )
|
||||
{
|
||||
PluginLog.Error(
|
||||
Penumbra.Log.Error(
|
||||
$"Error parsing Configuration at {errorArgs.ErrorContext.Path}, using default or migrating:\n{errorArgs.ErrorContext.Error}" );
|
||||
errorArgs.ErrorContext.Handled = true;
|
||||
}
|
||||
|
|
@ -116,7 +115,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not save plugin configuration:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not save plugin configuration:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Lumina.Data.Files;
|
||||
using SixLabors.ImageSharp;
|
||||
using SixLabors.ImageSharp.PixelFormats;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Penumbra.Import.Dds;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Text.RegularExpressions;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Util;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Penumbra.Import;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
using Penumbra.Util;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Penumbra.Util;
|
||||
|
||||
namespace Penumbra.Import;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Penumbra.Mods;
|
||||
using FileMode = System.IO.FileMode;
|
||||
|
|
@ -142,7 +141,7 @@ public partial class TexToolsImporter : IDisposable
|
|||
{
|
||||
if( modPackFile.Extension != ".ttmp2" )
|
||||
{
|
||||
PluginLog.Warning( $"File {modPackFile.FullName} seems to be a V2 TTMP, but has the wrong extension." );
|
||||
Penumbra.Log.Warning( $"File {modPackFile.FullName} seems to be a V2 TTMP, but has the wrong extension." );
|
||||
}
|
||||
|
||||
return ImportV2ModPack( modPackFile, extractedModPack, modRaw );
|
||||
|
|
@ -150,7 +149,7 @@ public partial class TexToolsImporter : IDisposable
|
|||
|
||||
if( modPackFile.Extension != ".ttmp" )
|
||||
{
|
||||
PluginLog.Warning( $"File {modPackFile.FullName} seems to be a V1 TTMP, but has the wrong extension." );
|
||||
Penumbra.Log.Warning( $"File {modPackFile.FullName} seems to be a V1 TTMP, but has the wrong extension." );
|
||||
}
|
||||
|
||||
return ImportV1ModPack( modPackFile, extractedModPack, modRaw );
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
|
@ -13,6 +9,9 @@ using SharpCompress.Archives.SevenZip;
|
|||
using SharpCompress.Archives.Zip;
|
||||
using SharpCompress.Common;
|
||||
using SharpCompress.Readers;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace Penumbra.Import;
|
||||
|
||||
|
|
@ -42,7 +41,7 @@ public partial class TexToolsImporter
|
|||
SevenZipArchive s => s.Entries.Count,
|
||||
_ => archive.Entries.Count(),
|
||||
};
|
||||
PluginLog.Log( $" -> Importing {archive.Type} Archive." );
|
||||
Penumbra.Log.Information( $" -> Importing {archive.Type} Archive." );
|
||||
|
||||
_currentModDirectory = Mod.CreateModFolder( _baseDirectory, baseName );
|
||||
var options = new ExtractionOptions()
|
||||
|
|
@ -65,7 +64,7 @@ public partial class TexToolsImporter
|
|||
continue;
|
||||
}
|
||||
|
||||
PluginLog.Log( " -> Extracting {0}", reader.Entry.Key );
|
||||
Penumbra.Log.Information( $" -> Extracting {reader.Entry.Key}" );
|
||||
reader.WriteEntryToDirectory( _currentModDirectory.FullName, options );
|
||||
|
||||
++_currentFileIdx;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.Util;
|
||||
|
|
@ -24,7 +23,7 @@ public partial class TexToolsImporter
|
|||
_currentGroupName = string.Empty;
|
||||
_currentOptionName = DefaultTexToolsData.DefaultOption;
|
||||
|
||||
PluginLog.Log( " -> Importing V1 ModPack" );
|
||||
Penumbra.Log.Information( " -> Importing V1 ModPack" );
|
||||
|
||||
var modListRaw = modRaw.Split(
|
||||
new[] { "\r\n", "\r", "\n" },
|
||||
|
|
@ -62,12 +61,12 @@ public partial class TexToolsImporter
|
|||
|
||||
try
|
||||
{
|
||||
PluginLog.Warning( $"Unknown TTMPVersion <{modList.TtmpVersion}> given, trying to export as simple mod pack." );
|
||||
Penumbra.Log.Warning( $"Unknown TTMPVersion <{modList.TtmpVersion}> given, trying to export as simple mod pack." );
|
||||
return ImportSimpleV2ModPack( extractedModPack, modList );
|
||||
}
|
||||
catch( Exception e1 )
|
||||
{
|
||||
PluginLog.Warning( $"Exporting as simple mod pack failed with following error, retrying as extended mod pack:\n{e1}" );
|
||||
Penumbra.Log.Warning( $"Exporting as simple mod pack failed with following error, retrying as extended mod pack:\n{e1}" );
|
||||
try
|
||||
{
|
||||
return ImportExtendedV2ModPack( extractedModPack, modRaw );
|
||||
|
|
@ -87,7 +86,7 @@ public partial class TexToolsImporter
|
|||
_currentModName = modList.Name;
|
||||
_currentGroupName = string.Empty;
|
||||
_currentOptionName = DefaultTexToolsData.DefaultOption;
|
||||
PluginLog.Log( " -> Importing Simple V2 ModPack" );
|
||||
Penumbra.Log.Information( " -> Importing Simple V2 ModPack" );
|
||||
|
||||
_currentModDirectory = Mod.CreateModFolder( _baseDirectory, _currentModName );
|
||||
Mod.CreateMeta( _currentModDirectory, _currentModName, modList.Author, string.IsNullOrEmpty( modList.Description )
|
||||
|
|
@ -128,7 +127,7 @@ public partial class TexToolsImporter
|
|||
private DirectoryInfo ImportExtendedV2ModPack( ZipArchive extractedModPack, string modRaw )
|
||||
{
|
||||
_currentOptionIdx = 0;
|
||||
PluginLog.Log( " -> Importing Extended V2 ModPack" );
|
||||
Penumbra.Log.Information( " -> Importing Extended V2 ModPack" );
|
||||
|
||||
var modList = JsonConvert.DeserializeObject< ExtendedModPack >( modRaw, JsonSettings )!;
|
||||
_currentNumOptions = GetOptionCount( modList );
|
||||
|
|
@ -243,7 +242,7 @@ public partial class TexToolsImporter
|
|||
return;
|
||||
}
|
||||
|
||||
PluginLog.Log( " -> Extracting {0} at {1}", mod.FullPath, mod.ModOffset.ToString( "X" ) );
|
||||
Penumbra.Log.Information( $" -> Extracting {mod.FullPath} at {mod.ModOffset:X}" );
|
||||
|
||||
_token.ThrowIfCancellationRequested();
|
||||
var data = stream.ReadFile< PenumbraSqPackStream.PenumbraFileResource >( mod.ModOffset );
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
using Lumina.Extensions;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Structs;
|
||||
|
|
@ -166,7 +165,7 @@ public partial class TexToolsMeta
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning(
|
||||
Penumbra.Log.Warning(
|
||||
$"Could not compute IMC manipulation for {metaFileInfo.PrimaryType} {metaFileInfo.PrimaryId}. This is in all likelihood due to TexTools corrupting your index files.\n"
|
||||
+ $"If the following error looks like Lumina is having trouble to read an IMC file, please do a do-over in TexTools:\n{e}" );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Meta.Files;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
|
|
@ -14,7 +13,7 @@ public partial class TexToolsMeta
|
|||
{
|
||||
if( data.Length != 45 && data.Length != 42 )
|
||||
{
|
||||
PluginLog.Error( "Error while parsing .rgsp file:\n\tInvalid number of bytes." );
|
||||
Penumbra.Log.Error( "Error while parsing .rgsp file:\n\tInvalid number of bytes." );
|
||||
return Invalid;
|
||||
}
|
||||
|
||||
|
|
@ -32,7 +31,7 @@ public partial class TexToolsMeta
|
|||
var subRace = ( SubRace )( version == 1 ? flag + 1 : br.ReadByte() + 1 );
|
||||
if( !Enum.IsDefined( typeof( SubRace ), subRace ) || subRace == SubRace.Unknown )
|
||||
{
|
||||
PluginLog.Error( $"Error while parsing .rgsp file:\n\t{subRace} is not a valid SubRace." );
|
||||
Penumbra.Log.Error( $"Error while parsing .rgsp file:\n\t{subRace} is not a valid SubRace." );
|
||||
return Invalid;
|
||||
}
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ public partial class TexToolsMeta
|
|||
var gender = br.ReadByte();
|
||||
if( gender != 1 && gender != 0 )
|
||||
{
|
||||
PluginLog.Error( $"Error while parsing .rgsp file:\n\t{gender} is neither Male nor Female." );
|
||||
Penumbra.Log.Error( $"Error while parsing .rgsp file:\n\t{gender} is neither Male nor Female." );
|
||||
return Invalid;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
|
||||
namespace Penumbra.Import;
|
||||
|
|
@ -72,7 +71,7 @@ public partial class TexToolsMeta
|
|||
catch( Exception e )
|
||||
{
|
||||
FilePath = "";
|
||||
PluginLog.Error( $"Error while parsing .meta file:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error while parsing .meta file:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
|
||||
namespace Penumbra.Interop;
|
||||
|
|
@ -50,7 +49,7 @@ public unsafe class CharacterUtility : IDisposable
|
|||
public CharacterUtility()
|
||||
{
|
||||
SignatureHelper.Initialise( this );
|
||||
LoadingFinished += () => PluginLog.Debug( "Loading of CharacterUtility finished." );
|
||||
LoadingFinished += () => Penumbra.Log.Debug( "Loading of CharacterUtility finished." );
|
||||
LoadDefaultResources( null! );
|
||||
if( !Ready )
|
||||
{
|
||||
|
|
@ -97,13 +96,13 @@ public unsafe class CharacterUtility : IDisposable
|
|||
{
|
||||
if( !Ready )
|
||||
{
|
||||
PluginLog.Error( $"Can not set resource {resourceIdx}: CharacterUtility not ready yet." );
|
||||
Penumbra.Log.Error( $"Can not set resource {resourceIdx}: CharacterUtility not ready yet." );
|
||||
return false;
|
||||
}
|
||||
|
||||
var resource = Address->Resource( resourceIdx );
|
||||
var ret = resource->SetData( data, length );
|
||||
PluginLog.Verbose( "Set resource {Idx} to 0x{NewData:X} ({NewLength} bytes).", resourceIdx, ( ulong )data, length );
|
||||
Penumbra.Log.Verbose( $"Set resource {resourceIdx} to 0x{( ulong )data:X} ({length} bytes).");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -112,13 +111,13 @@ public unsafe class CharacterUtility : IDisposable
|
|||
{
|
||||
if( !Ready )
|
||||
{
|
||||
PluginLog.Error( $"Can not reset {resourceIdx}: CharacterUtility not ready yet." );
|
||||
Penumbra.Log.Error( $"Can not reset {resourceIdx}: CharacterUtility not ready yet." );
|
||||
return;
|
||||
}
|
||||
|
||||
var (data, length) = DefaultResource( resourceIdx);
|
||||
var resource = Address->Resource( resourceIdx );
|
||||
PluginLog.Verbose( "Reset resource {Idx} to default at 0x{DefaultData:X} ({NewLength} bytes).", resourceIdx, ( ulong )data, length );
|
||||
Penumbra.Log.Verbose( $"Reset resource {resourceIdx} to default at 0x{(ulong)data:X} ({length} bytes).");
|
||||
resource->SetData( data, length );
|
||||
}
|
||||
|
||||
|
|
@ -127,7 +126,7 @@ public unsafe class CharacterUtility : IDisposable
|
|||
{
|
||||
if( !Ready )
|
||||
{
|
||||
PluginLog.Error( "Can not reset all resources: CharacterUtility not ready yet." );
|
||||
Penumbra.Log.Error( "Can not reset all resources: CharacterUtility not ready yet." );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -136,7 +135,7 @@ public unsafe class CharacterUtility : IDisposable
|
|||
ResetResource( idx );
|
||||
}
|
||||
|
||||
PluginLog.Debug( "Reset all CharacterUtility resources to default." );
|
||||
Penumbra.Log.Debug( "Reset all CharacterUtility resources to default." );
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using Dalamud.Logging;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Framework;
|
||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||
|
||||
|
|
@ -22,7 +21,7 @@ public static unsafe class FontReloader
|
|||
}
|
||||
else
|
||||
{
|
||||
PluginLog.Error( "Could not reload fonts, function could not be found." );
|
||||
Penumbra.Log.Error( "Could not reload fonts, function could not be found." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource.Handle;
|
||||
|
|
@ -20,7 +19,7 @@ public unsafe partial class ResourceLoader
|
|||
private readonly Hook< ResourceHandleDecRef > _decRefHook;
|
||||
|
||||
public delegate IntPtr ResourceHandleDestructor( ResourceHandle* handle );
|
||||
|
||||
|
||||
[Signature( "48 89 5C 24 ?? 57 48 83 EC ?? 48 8D 05 ?? ?? ?? ?? 48 8B D9 48 89 01 B8",
|
||||
DetourName = nameof( ResourceHandleDestructorDetour ) )]
|
||||
public static Hook< ResourceHandleDestructor >? ResourceHandleDestructorHook;
|
||||
|
|
@ -29,8 +28,7 @@ public unsafe partial class ResourceLoader
|
|||
{
|
||||
if( handle != null )
|
||||
{
|
||||
PluginLog.Information( "[ResourceLoader] Destructing Resource Handle {Path:l} at 0x{Address:X} (Refcount {Refcount}).",
|
||||
handle->FileName, ( ulong )handle, handle->RefCount );
|
||||
Penumbra.Log.Information( $"[ResourceLoader] Destructing Resource Handle {handle->FileName} at 0x{( ulong )handle:X} (Refcount {handle->RefCount}).");
|
||||
}
|
||||
|
||||
return ResourceHandleDestructorHook!.Original( handle );
|
||||
|
|
@ -95,7 +93,7 @@ public unsafe partial class ResourceLoader
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( e.ToString() );
|
||||
Penumbra.Log.Error( e.ToString() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -236,22 +234,22 @@ public unsafe partial class ResourceLoader
|
|||
return _decRefHook.Original( handle );
|
||||
}
|
||||
|
||||
PluginLog.Error( $"Caught decrease of Reference Counter for {handle->FileName} at 0x{( ulong )handle:X} below 0." );
|
||||
Penumbra.Log.Error( $"Caught decrease of Reference Counter for {handle->FileName} at 0x{( ulong )handle:X} below 0." );
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Logging functions for EnableFullLogging.
|
||||
private static void LogPath( Utf8GamePath path, bool synchronous )
|
||||
=> PluginLog.Information( $"[ResourceLoader] Requested {path} {( synchronous ? "synchronously." : "asynchronously." )}" );
|
||||
=> Penumbra.Log.Information( $"[ResourceLoader] Requested {path} {( synchronous ? "synchronously." : "asynchronously." )}" );
|
||||
|
||||
private static void LogResource( Structs.ResourceHandle* handle, Utf8GamePath path, FullPath? manipulatedPath, ResolveData _ )
|
||||
{
|
||||
var pathString = manipulatedPath != null ? $"custom file {manipulatedPath} instead of {path}" : path.ToString();
|
||||
PluginLog.Information( $"[ResourceLoader] Loaded {pathString} to 0x{( ulong )handle:X}. (Refcount {handle->RefCount})" );
|
||||
Penumbra.Log.Information( $"[ResourceLoader] Loaded {pathString} to 0x{( ulong )handle:X}. (Refcount {handle->RefCount})" );
|
||||
}
|
||||
|
||||
private static void LogLoadedFile( Utf8String path, bool success, bool custom )
|
||||
=> PluginLog.Information( success
|
||||
=> Penumbra.Log.Information( success
|
||||
? $"[ResourceLoader] Loaded {path} from {( custom ? "local files" : "SqPack" )}"
|
||||
: $"[ResourceLoader] Failed to load {path} from {( custom ? "local files" : "SqPack" )}." );
|
||||
}
|
||||
|
|
@ -1,12 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||
using Penumbra.Collections;
|
||||
|
|
@ -68,7 +65,7 @@ public unsafe partial class ResourceLoader
|
|||
{
|
||||
if( local != game )
|
||||
{
|
||||
PluginLog.Warning( "Hash function appears to have changed. Computed {Hash1:X8} vs Game {Hash2:X8} for {Path}.", local, game, path );
|
||||
Penumbra.Log.Warning( $"Hash function appears to have changed. Computed {local:X8} vs Game {game:X8} for {path}." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -79,7 +76,7 @@ public unsafe partial class ResourceLoader
|
|||
{
|
||||
if( !Utf8GamePath.FromPointer( path, out var gamePath ) )
|
||||
{
|
||||
PluginLog.Error( "Could not create GamePath from resource path." );
|
||||
Penumbra.Log.Error( "Could not create GamePath from resource path." );
|
||||
return CallOriginalHandler( isSync, resourceManager, categoryId, resourceType, resourceHash, path, pGetResParams, isUnk );
|
||||
}
|
||||
|
||||
|
|
@ -161,7 +158,7 @@ public unsafe partial class ResourceLoader
|
|||
|
||||
if( fileDescriptor == null || fileDescriptor->ResourceHandle == null )
|
||||
{
|
||||
PluginLog.Error( "Failure to load file from SqPack: invalid File Descriptor." );
|
||||
Penumbra.Log.Error( "Failure to load file from SqPack: invalid File Descriptor." );
|
||||
return ReadSqPackHook.Original( resourceManager, fileDescriptor, priority, isSync );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using Dalamud.Logging;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
||||
namespace Penumbra.Interop.Loader;
|
||||
|
|
@ -79,7 +78,7 @@ public class ResourceLogger : IDisposable
|
|||
var path = Match( data.Path );
|
||||
if( path != null )
|
||||
{
|
||||
PluginLog.Information( $"{path} was requested {( synchronous ? "synchronously." : "asynchronously." )}" );
|
||||
Penumbra.Log.Information( $"{path} was requested {( synchronous ? "synchronously." : "asynchronously." )}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
|
||||
namespace Penumbra.Interop;
|
||||
|
|
@ -31,7 +30,7 @@ public unsafe class ResidentResourceManager
|
|||
{
|
||||
if( Address != null && Address->NumResources > 0 )
|
||||
{
|
||||
PluginLog.Debug( "Reload of resident resources triggered." );
|
||||
Penumbra.Log.Debug( "Reload of resident resources triggered." );
|
||||
UnloadPlayerResources.Invoke( Address );
|
||||
LoadPlayerResources.Invoke( Address );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using Penumbra.Collections;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using Dalamud.Utility.Signatures;
|
|||
using Penumbra.Collections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Object;
|
||||
using Penumbra.Api;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Character;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Object;
|
||||
|
|
@ -203,7 +202,7 @@ public unsafe partial class PathResolver
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error identifying collection:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error identifying collection:\n{e}" );
|
||||
return Penumbra.CollectionManager.Default.ToResolveData( gameObject );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||
using Penumbra.Collections;
|
||||
|
|
@ -95,7 +93,7 @@ public unsafe partial class PathResolver
|
|||
|| Penumbra.CollectionManager.ByName( name, out collection ) )
|
||||
{
|
||||
#if DEBUG
|
||||
PluginLog.Verbose( "Using MtrlLoadHandler with collection {$Split:l} for path {$Path:l}.", name, path );
|
||||
Penumbra.Log.Verbose( $"Using MtrlLoadHandler with collection {name} for path {path}." );
|
||||
#endif
|
||||
|
||||
var objFromObjTable = Dalamud.Objects.FirstOrDefault( f => f.Name.TextValue == name );
|
||||
|
|
@ -105,7 +103,7 @@ public unsafe partial class PathResolver
|
|||
else
|
||||
{
|
||||
#if DEBUG
|
||||
PluginLog.Verbose( "Using MtrlLoadHandler with no collection for path {$Path:l}.", path );
|
||||
Penumbra.Log.Verbose( $"Using MtrlLoadHandler with no collection for path {path}." );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using Dalamud.Hooking;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Object;
|
||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Scene;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using Penumbra.Collections;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Hooking;
|
||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Scene;
|
||||
using Penumbra.Collections;
|
||||
|
||||
namespace Penumbra.Interop.Resolver;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility.Signatures;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Object;
|
||||
using FFXIVClientStructs.FFXIV.Client.Graphics.Scene;
|
||||
|
|
@ -84,7 +83,7 @@ public partial class PathResolver : IDisposable
|
|||
_materials.Enable();
|
||||
|
||||
_loader.ResolvePathCustomization += CharacterResolver;
|
||||
PluginLog.Debug( "Character Path Resolver enabled." );
|
||||
Penumbra.Log.Debug( "Character Path Resolver enabled." );
|
||||
}
|
||||
|
||||
public void Disable()
|
||||
|
|
@ -103,7 +102,7 @@ public partial class PathResolver : IDisposable
|
|||
_materials.Disable();
|
||||
|
||||
_loader.ResolvePathCustomization -= CharacterResolver;
|
||||
PluginLog.Debug( "Character Path Resolver disabled." );
|
||||
Penumbra.Log.Debug( "Character Path Resolver disabled." );
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Runtime.InteropServices;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Interop.Resolver;
|
||||
|
||||
namespace Penumbra.Interop.Structs;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Penumbra.GameData.Structs;
|
||||
using Penumbra.GameData.Util;
|
||||
using Penumbra.Interop.Structs;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
|
@ -125,7 +124,7 @@ public unsafe class ImcFile : MetaBaseFile
|
|||
if( ActualLength > Length )
|
||||
{
|
||||
var newLength = ( ( ( ActualLength - 1 ) >> 7 ) + 1 ) << 7;
|
||||
PluginLog.Verbose( "Resized IMC {Path} from {Length} to {NewLength}.", Path, Length, newLength );
|
||||
Penumbra.Log.Verbose( $"Resized IMC {Path} from {Length} to {newLength}." );
|
||||
ResizeResources( newLength );
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +134,7 @@ public unsafe class ImcFile : MetaBaseFile
|
|||
Functions.MemCpyUnchecked( defaultPtr + i * NumParts, defaultPtr, NumParts * sizeof( ImcEntry ) );
|
||||
}
|
||||
|
||||
PluginLog.Verbose( "Expanded IMC {Path} from {Count} to {NewCount} variants.", Path, oldCount, numVariants );
|
||||
Penumbra.Log.Verbose( $"Expanded IMC {Path} from {oldCount} to {numVariants} variants." );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -151,7 +150,7 @@ public unsafe class ImcFile : MetaBaseFile
|
|||
var variantPtr = VariantPtr( Data, partIdx, variantIdx );
|
||||
if( variantPtr == null )
|
||||
{
|
||||
PluginLog.Error( "Error during expansion of imc file." );
|
||||
Penumbra.Log.Error( "Error during expansion of imc file." );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +221,7 @@ public unsafe class ImcFile : MetaBaseFile
|
|||
var newData = Penumbra.MetaFileManager.AllocateDefaultMemory( ActualLength, 8 );
|
||||
if( newData == null )
|
||||
{
|
||||
PluginLog.Error("Could not replace loaded IMC data at 0x{Data:X}, allocation failed." );
|
||||
Penumbra.Log.Error($"Could not replace loaded IMC data at 0x{(ulong) resource:X}, allocation failed." );
|
||||
return;
|
||||
}
|
||||
Functions.MemCpyUnchecked( newData, Data, ActualLength );
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Interop.Structs;
|
||||
using Penumbra.Meta.Files;
|
||||
using Penumbra.Meta.Manipulations;
|
||||
using Penumbra.Mods;
|
||||
|
||||
namespace Penumbra.Meta.Manager;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using FFXIVClientStructs.FFXIV.Client.System.Resource;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Interop.Structs;
|
||||
|
|
@ -81,7 +78,7 @@ public partial class MetaManager
|
|||
catch( Exception e )
|
||||
{
|
||||
++Penumbra.ImcExceptions;
|
||||
PluginLog.Error( $"Could not apply IMC Manipulation:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not apply IMC Manipulation:\n{e}" );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -156,7 +153,7 @@ public partial class MetaManager
|
|||
return false;
|
||||
}
|
||||
|
||||
PluginLog.Verbose( "Using ImcLoadHandler for path {$Path:l}.", path );
|
||||
Penumbra.Log.Verbose( $"Using ImcLoadHandler for path {path}." );
|
||||
ret = Penumbra.ResourceLoader.ReadSqPackHook.Original( resourceManager, fileDescriptor, priority, isSync );
|
||||
|
||||
var lastUnderscore = split.LastIndexOf( ( byte )'_' );
|
||||
|
|
@ -166,8 +163,7 @@ public partial class MetaManager
|
|||
&& collection.HasCache
|
||||
&& collection.MetaCache!._imcFiles.TryGetValue( Utf8GamePath.FromSpan( path.Span, out var p ) ? p : Utf8GamePath.Empty, out var file ) )
|
||||
{
|
||||
PluginLog.Debug( "Loaded {GamePath:l} from file and replaced with IMC from collection {Collection:l}.", path,
|
||||
collection.AnonymizedName );
|
||||
Penumbra.Log.Debug( $"Loaded {path} from file and replaced with IMC from collection {collection.AnonymizedName}." );
|
||||
file.Replace( fileDescriptor->ResourceHandle );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ using System.Collections.Generic;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Dalamud.Logging;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.Interop.Structs;
|
||||
using Penumbra.Meta.Files;
|
||||
|
|
@ -165,7 +164,7 @@ public partial class MetaManager : IDisposable, IEnumerable< KeyValuePair< MetaM
|
|||
}
|
||||
|
||||
Penumbra.CharacterUtility.LoadingFinished -= ApplyStoredManipulations;
|
||||
PluginLog.Debug( "{Collection}: Loaded {Num} delayed meta manipulations.", _collection.Name, loaded );
|
||||
Penumbra.Log.Debug( $"{_collection.AnonymizedName}: Loaded {loaded} delayed meta manipulations." );
|
||||
}
|
||||
|
||||
[MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Penumbra.GameData.Structs;
|
||||
using Penumbra.Interop.Structs;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Logging;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
|
@ -87,7 +86,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"[DeleteDuplicates] Could not delete duplicate {duplicate.FullName} of {remaining.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"[DeleteDuplicates] Could not delete duplicate {duplicate.FullName} of {remaining.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -100,7 +99,7 @@ public partial class Mod
|
|||
}
|
||||
|
||||
changes = true;
|
||||
PluginLog.Debug( "[DeleteDuplicates] Changing {GamePath:l} for {Mod:d}\n : {Old:l}\n -> {New:l}", key, _mod.Name, from, to );
|
||||
Penumbra.Log.Debug( $"[DeleteDuplicates] Changing {key} for {_mod.Name}\n : {from}\n -> {to}" );
|
||||
return to;
|
||||
}
|
||||
|
||||
|
|
@ -263,7 +262,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete empty directories in {baseDir.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete empty directories in {baseDir.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -282,7 +281,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning( $"Could not deduplicate mod {modDirectory.Name}:\n{e}" );
|
||||
Penumbra.Log.Warning( $"Could not deduplicate mod {modDirectory.Name}:\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
|
@ -114,7 +113,7 @@ public partial class Mod
|
|||
return true;
|
||||
}
|
||||
|
||||
PluginLog.Debug( "[RemoveMissingPaths] Removing {GamePath} -> {File} from {Mod}.", key, file, _mod.Name );
|
||||
Penumbra.Log.Debug( $"[RemoveMissingPaths] Removing {key} -> {file} from {_mod.Name}." );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -257,12 +256,12 @@ public partial class Mod
|
|||
try
|
||||
{
|
||||
File.Delete( file.File.FullName );
|
||||
PluginLog.Debug( "[DeleteFiles] Deleted {File} from {Mod}.", file.File.FullName, _mod.Name );
|
||||
Penumbra.Log.Debug( $"[DeleteFiles] Deleted {file.File.FullName} from {_mod.Name}." );
|
||||
++deletions;
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"[DeleteFiles] Could not delete {file.File.FullName} from {_mod.Name}:\n{e}" );
|
||||
Penumbra.Log.Error( $"[DeleteFiles] Could not delete {file.File.FullName} from {_mod.Name}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
using System.Collections.Generic;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
||||
public partial class Mod
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
|
@ -90,7 +89,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Unexpected error scanning {_mod.Name}'s {file.File.FullName} for materials:\n{e}" );
|
||||
Penumbra.Log.Error( $"Unexpected error scanning {_mod.Name}'s {file.File.FullName} for materials:\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -152,7 +151,7 @@ public partial class Mod
|
|||
catch( Exception e )
|
||||
{
|
||||
Restore();
|
||||
PluginLog.Error( $"Could not write manipulated .mdl file {Path.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not write manipulated .mdl file {Path.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Logging;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
||||
|
|
@ -41,11 +40,11 @@ public class ModBackup
|
|||
{
|
||||
File.Delete( zipName );
|
||||
}
|
||||
PluginLog.Information( $"Migrated mod backup from {zipName} to {pmpName}." );
|
||||
Penumbra.Log.Information( $"Migrated mod backup from {zipName} to {pmpName}." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning( $"Could not migrate mod backup of {mod.ModPath} from .pmp to .zip:\n{e}" );
|
||||
Penumbra.Log.Warning( $"Could not migrate mod backup of {mod.ModPath} from .pmp to .zip:\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -72,11 +71,11 @@ public class ModBackup
|
|||
{
|
||||
Delete();
|
||||
ZipFile.CreateFromDirectory( _mod.ModPath.FullName, Name, CompressionLevel.Optimal, false );
|
||||
PluginLog.Debug( "Created backup file {backupName} from {modDirectory}.", Name, _mod.ModPath.FullName );
|
||||
Penumbra.Log.Debug( $"Created backup file {Name} from {_mod.ModPath.FullName}.");
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not backup mod {_mod.Name} to \"{Name}\":\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not backup mod {_mod.Name} to \"{Name}\":\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -91,11 +90,11 @@ public class ModBackup
|
|||
try
|
||||
{
|
||||
File.Delete( Name );
|
||||
PluginLog.Debug( "Deleted backup file {backupName}.", Name );
|
||||
Penumbra.Log.Debug( $"Deleted backup file {Name}." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete file \"{Name}\":\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete file \"{Name}\":\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -108,16 +107,16 @@ public class ModBackup
|
|||
if( Directory.Exists( _mod.ModPath.FullName ) )
|
||||
{
|
||||
Directory.Delete( _mod.ModPath.FullName, true );
|
||||
PluginLog.Debug( "Deleted mod folder {modFolder}.", _mod.ModPath.FullName );
|
||||
Penumbra.Log.Debug( $"Deleted mod folder {_mod.ModPath.FullName}." );
|
||||
}
|
||||
|
||||
ZipFile.ExtractToDirectory( Name, _mod.ModPath.FullName );
|
||||
PluginLog.Debug( "Extracted backup file {backupName} to {modName}.", Name, _mod.ModPath.FullName );
|
||||
Penumbra.Log.Debug( $"Extracted backup file {Name} to {_mod.ModPath.FullName}.");
|
||||
Penumbra.ModManager.ReloadMod( _mod.Index );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not restore {_mod.Name} from backup \"{Name}\":\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not restore {_mod.Name} from backup \"{Name}\":\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -274,7 +274,7 @@ public partial class Mod
|
|||
// }
|
||||
// catch( Exception e )
|
||||
// {
|
||||
// PluginLog.Error( $"Could not split Mod:\n{e}" );
|
||||
// Penumbra.Log.Error( $"Could not split Mod:\n{e}" );
|
||||
// }
|
||||
// }
|
||||
//
|
||||
|
|
@ -394,7 +394,7 @@ public partial class Mod
|
|||
// }
|
||||
// }
|
||||
//
|
||||
// PluginLog.Information( $"File {relName1} and {relName2} are identical. Deleting the second." );
|
||||
// Penumbra.Log.Information( $"File {relName1} and {relName2} are identical. Deleting the second." );
|
||||
// f2.Delete();
|
||||
// }
|
||||
//
|
||||
|
|
@ -498,7 +498,7 @@ public partial class Mod
|
|||
// }
|
||||
// catch( Exception e )
|
||||
// {
|
||||
// PluginLog.Error( $"Could not move file from {oldRelPath} to {newRelPath}:\n{e}" );
|
||||
// Penumbra.Log.Error( $"Could not move file from {oldRelPath} to {newRelPath}:\n{e}" );
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
||||
|
|
@ -34,7 +33,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete empty directory {dir!.FullName} to move {mod.Name} to it:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete empty directory {dir!.FullName} to move {mod.Name} to it:\n{e}" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -55,7 +54,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not move {mod.Name} from {oldDirectory.Name} to {dir!.Name}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not move {mod.Name} from {oldDirectory.Name} to {dir!.Name}:\n{e}" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +62,7 @@ public partial class Mod
|
|||
mod.ModPath = dir;
|
||||
if( !mod.Reload( out var metaChange ) )
|
||||
{
|
||||
PluginLog.Error( $"Error reloading moved mod {mod.Name}." );
|
||||
Penumbra.Log.Error( $"Error reloading moved mod {mod.Name}." );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -81,10 +80,10 @@ public partial class Mod
|
|||
var mod = this[ idx ];
|
||||
var oldName = mod.Name;
|
||||
|
||||
ModPathChanged.Invoke(ModPathChangeType.StartingReload, mod, mod.ModPath, mod.ModPath );
|
||||
ModPathChanged.Invoke( ModPathChangeType.StartingReload, mod, mod.ModPath, mod.ModPath );
|
||||
if( !mod.Reload( out var metaChange ) )
|
||||
{
|
||||
PluginLog.Warning( mod.Name.Length == 0
|
||||
Penumbra.Log.Warning( mod.Name.Length == 0
|
||||
? $"Reloading mod {oldName} has failed, new name is empty. Deleting instead."
|
||||
: $"Reloading mod {oldName} failed, {mod.ModPath.FullName} does not exist anymore or it ha. Deleting instead." );
|
||||
|
||||
|
|
@ -110,11 +109,11 @@ public partial class Mod
|
|||
try
|
||||
{
|
||||
Directory.Delete( mod.ModPath.FullName, true );
|
||||
PluginLog.Debug( "Deleted directory {Directory:l} for {Name:l}.", mod.ModPath.FullName, mod.Name );
|
||||
Penumbra.Log.Debug( $"Deleted directory {mod.ModPath.FullName} for {mod.Name}.");
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete the mod {mod.ModPath.Name}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete the mod {mod.ModPath.Name}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -125,7 +124,7 @@ public partial class Mod
|
|||
--remainingMod.Index;
|
||||
}
|
||||
|
||||
PluginLog.Debug( "Deleted mod {Name:l}.", mod.Name );
|
||||
Penumbra.Log.Debug( $"Deleted mod {mod.Name}." );
|
||||
}
|
||||
|
||||
// Load a new mod and add it to the manager if successful.
|
||||
|
|
@ -145,7 +144,7 @@ public partial class Mod
|
|||
mod.Index = _mods.Count;
|
||||
_mods.Add( mod );
|
||||
ModPathChanged.Invoke( ModPathChangeType.Added, mod, null, mod.ModPath );
|
||||
PluginLog.Debug( "Added new mod {Name:l} from {Directory:l}.", mod.Name, modFolder.FullName );
|
||||
Penumbra.Log.Debug( $"Added new mod {mod.Name} from {modFolder.FullName}." );
|
||||
}
|
||||
|
||||
public enum NewDirectoryState
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui;
|
||||
using OtterGui.Filesystem;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
|
@ -201,7 +200,7 @@ public sealed partial class Mod
|
|||
var group = mod._groups[ groupIdx ];
|
||||
if( group.Count > 63 )
|
||||
{
|
||||
PluginLog.Error(
|
||||
Penumbra.Log.Error(
|
||||
$"Could not add option {option.Name} to {group.Name} for mod {mod.Name}, "
|
||||
+ "since only up to 64 options are supported in one group." );
|
||||
return;
|
||||
|
|
@ -307,7 +306,7 @@ public sealed partial class Mod
|
|||
{
|
||||
if( message )
|
||||
{
|
||||
PluginLog.Warning( $"Could not name option {newName} because option with same filename {path} already exists." );
|
||||
Penumbra.Log.Warning( $"Could not name option {newName} because option with same filename {path} already exists." );
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
||||
|
|
@ -53,7 +52,7 @@ public sealed partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not create specified mod directory {newDir.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not create specified mod directory {newDir.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -68,8 +67,7 @@ public sealed partial class Mod
|
|||
|
||||
private static void OnModDirectoryChange( string newPath, bool _ )
|
||||
{
|
||||
PluginLog.Information( "Set new mod base directory from {OldDirectory:l} to {NewDirectory:l}.",
|
||||
Penumbra.Config.ModDirectory, newPath );
|
||||
Penumbra.Log.Information( $"Set new mod base directory from {Penumbra.Config.ModDirectory} to {newPath}." );
|
||||
Penumbra.Config.ModDirectory = newPath;
|
||||
Penumbra.Config.Save();
|
||||
}
|
||||
|
|
@ -98,7 +96,7 @@ public sealed partial class Mod
|
|||
}
|
||||
|
||||
ModDiscoveryFinished?.Invoke();
|
||||
PluginLog.Information( "Rediscovered mods." );
|
||||
Penumbra.Log.Information( "Rediscovered mods." );
|
||||
|
||||
if( MigrateModBackups )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
||||
|
|
@ -32,7 +31,7 @@ public partial class Mod
|
|||
modPath.Refresh();
|
||||
if( !modPath.Exists )
|
||||
{
|
||||
PluginLog.Error( $"Supplied mod directory {modPath} does not exist." );
|
||||
Penumbra.Log.Error( $"Supplied mod directory {modPath} does not exist." );
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ public partial class Mod
|
|||
if( !mod.Reload( out _ ) )
|
||||
{
|
||||
// Can not be base path not existing because that is checked before.
|
||||
PluginLog.Error( $"Mod at {modPath} without name is not supported." );
|
||||
Penumbra.Log.Error( $"Mod at {modPath} without name is not supported." );
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
|
@ -88,7 +87,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not read mod group from {file.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not read mod group from {file.FullName}:\n{e}" );
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
@ -133,7 +132,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete outdated group file {file}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete outdated group file {file}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui;
|
||||
|
|
@ -37,7 +36,7 @@ public sealed partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not rename group file {group.Name} to {newName} during migration:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not rename group file {group.Name} to {newName} during migration:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +68,7 @@ public sealed partial class Mod
|
|||
if( unusedFile.ToGamePath( mod.ModPath, out var gamePath )
|
||||
&& !mod._default.FileData.TryAdd( gamePath, unusedFile ) )
|
||||
{
|
||||
PluginLog.Error( $"Could not add {gamePath} because it already points to {mod._default.FileData[ gamePath ]}." );
|
||||
Penumbra.Log.Error( $"Could not add {gamePath} because it already points to {mod._default.FileData[ gamePath ]}." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -95,7 +94,7 @@ public sealed partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning( $"Could not delete meta file {file.FullName} during migration:\n{e}" );
|
||||
Penumbra.Log.Warning( $"Could not delete meta file {file.FullName} during migration:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -109,7 +108,7 @@ public sealed partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning( $"Could not delete old meta file {oldMetaFile} during migration:\n{e}" );
|
||||
Penumbra.Log.Warning( $"Could not delete old meta file {oldMetaFile} during migration:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
|
@ -48,7 +46,7 @@ public sealed partial class Mod
|
|||
var metaFile = MetaFile;
|
||||
if( !File.Exists( metaFile.FullName ) )
|
||||
{
|
||||
PluginLog.Debug( "No mod meta found for {ModLocation}.", ModPath.Name );
|
||||
Penumbra.Log.Debug( $"No mod meta found for {ModPath.Name}." );
|
||||
return MetaChangeType.Deletion;
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +113,7 @@ public sealed partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not load mod meta:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not load mod meta:\n{e}" );
|
||||
return MetaChangeType.Deletion;
|
||||
}
|
||||
}
|
||||
|
|
@ -142,7 +140,7 @@ public sealed partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not write meta file for mod {Name} to {metaFile.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not write meta file for mod {Name} to {metaFile.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Character;
|
||||
using OtterGui.Classes;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
|
@ -91,11 +89,11 @@ public sealed partial class Mod
|
|||
|
||||
mod.SaveDefaultMod();
|
||||
Penumbra.ModManager.AddMod( dir );
|
||||
PluginLog.Information( $"Successfully generated mod {mod.Name} at {mod.ModPath.FullName} for collection {collection.Name}." );
|
||||
Penumbra.Log.Information( $"Successfully generated mod {mod.Name} at {mod.ModPath.FullName} for collection {collection.Name}." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not save temporary collection {collection.Name} to permanent Mod:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not save temporary collection {collection.Name} to permanent Mod:\n{e}" );
|
||||
if( dir != null && Directory.Exists( dir.FullName ) )
|
||||
{
|
||||
try
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using Dalamud.Logging;
|
||||
using OtterGui.Filesystem;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
|
|
@ -19,7 +18,7 @@ public sealed class ModFileSystem : FileSystem< Mod >, IDisposable
|
|||
private void SaveFilesystem()
|
||||
{
|
||||
SaveToFile( new FileInfo( ModFileSystemFile ), SaveMod, true );
|
||||
PluginLog.Verbose( "Saved mod filesystem." );
|
||||
Penumbra.Log.Verbose( "Saved mod filesystem." );
|
||||
}
|
||||
|
||||
private void Save()
|
||||
|
|
@ -79,7 +78,7 @@ public sealed class ModFileSystem : FileSystem< Mod >, IDisposable
|
|||
Save();
|
||||
}
|
||||
|
||||
PluginLog.Debug( "Reloaded mod filesystem." );
|
||||
Penumbra.Log.Debug( "Reloaded mod filesystem." );
|
||||
}
|
||||
|
||||
// Save the filesystem on every filesystem change except full reloading.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using OtterGui.Filesystem;
|
||||
|
||||
|
|
@ -50,11 +49,11 @@ public interface IModGroup : IEnumerable< ISubMod >
|
|||
try
|
||||
{
|
||||
File.Delete( file );
|
||||
PluginLog.Debug( "Deleted group file {File:l} for group {GroupIdx}: {GroupName:l}.", file, groupIdx + 1, Name );
|
||||
Penumbra.Log.Debug( $"Deleted group file {file} for group {groupIdx + 1}: {Name}." );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not delete file {file}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not delete file {file}:\n{e}" );
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
@ -92,7 +91,7 @@ public interface IModGroup : IEnumerable< ISubMod >
|
|||
|
||||
j.WriteEndArray();
|
||||
j.WriteEndObject();
|
||||
PluginLog.Debug( "Saved group file {File:l} for group {GroupIdx}: {GroupName:l}.", file, groupIdx + 1, group.Name );
|
||||
Penumbra.Log.Debug( $"Saved group file {file} for group {groupIdx + 1}: {group.Name}." );
|
||||
}
|
||||
|
||||
public IModGroup Convert( SelectType type );
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using OtterGui;
|
||||
|
|
@ -61,7 +59,7 @@ public partial class Mod
|
|||
{
|
||||
if( ret.PrioritizedOptions.Count == IModGroup.MaxMultiOptions )
|
||||
{
|
||||
PluginLog.Warning(
|
||||
Penumbra.Log.Warning(
|
||||
$"Multi Group {ret.Name} has more than {IModGroup.MaxMultiOptions} options, ignoring excessive options." );
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Penumbra.GameData.ByteString;
|
||||
|
|
@ -56,7 +55,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not parse default file for {Name}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not parse default file for {Name}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -196,8 +195,7 @@ public partial class Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not incorporate meta changes in mod {basePath} from file {file.FullName}:\n{e}" );
|
||||
continue;
|
||||
Penumbra.Log.Error( $"Could not incorporate meta changes in mod {basePath} from file {file.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ using System.Reflection;
|
|||
using System.Text;
|
||||
using Dalamud.Game.Command;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Plugin;
|
||||
using EmbedIO;
|
||||
using EmbedIO.WebApi;
|
||||
|
|
@ -14,6 +13,7 @@ using ImGuiNET;
|
|||
using Lumina.Excel.GeneratedSheets;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
using OtterGui.Log;
|
||||
using OtterGui.Widgets;
|
||||
using Penumbra.Api;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
|
@ -44,6 +44,7 @@ public class Penumbra : IDalamudPlugin
|
|||
public static bool DevPenumbraExists;
|
||||
public static bool IsNotInstalledPenumbra;
|
||||
|
||||
public static Logger Log { get; private set; } = null!;
|
||||
public static Configuration Config { get; private set; } = null!;
|
||||
|
||||
public static ResidentResourceManager ResidentResources { get; private set; } = null!;
|
||||
|
|
@ -74,6 +75,7 @@ public class Penumbra : IDalamudPlugin
|
|||
try
|
||||
{
|
||||
Dalamud.Initialize( pluginInterface );
|
||||
Log = new Logger();
|
||||
GameData.GameData.GetIdentifier( Dalamud.GameData );
|
||||
DevPenumbraExists = CheckDevPluginPenumbra();
|
||||
IsNotInstalledPenumbra = CheckIsNotInstalled();
|
||||
|
|
@ -135,17 +137,17 @@ public class Penumbra : IDalamudPlugin
|
|||
SubscribeItemLinks();
|
||||
if( ImcExceptions > 0 )
|
||||
{
|
||||
PluginLog.Error( $"{ImcExceptions} IMC Exceptions thrown. Please repair your game files." );
|
||||
Log.Error( $"{ImcExceptions} IMC Exceptions thrown. Please repair your game files." );
|
||||
}
|
||||
else
|
||||
{
|
||||
PluginLog.Information( $"Penumbra Version {Version}, Commit #{CommitHash} successfully Loaded." );
|
||||
Log.Information( $"Penumbra Version {Version}, Commit #{CommitHash} successfully Loaded." );
|
||||
}
|
||||
|
||||
Dalamud.PluginInterface.UiBuilder.Draw += _windowSystem.Draw;
|
||||
|
||||
OtterTex.NativeDll.Initialize( Dalamud.PluginInterface.AssemblyLocation.DirectoryName );
|
||||
PluginLog.Information( $"Loading native OtterTex assembly from {OtterTex.NativeDll.Directory}." );
|
||||
Log.Information( $"Loading native OtterTex assembly from {OtterTex.NativeDll.Directory}." );
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -261,7 +263,7 @@ public class Penumbra : IDalamudPlugin
|
|||
.WithController( () => new ModsController( this ) )
|
||||
.WithController( () => new RedrawController( this ) ) );
|
||||
|
||||
WebServer.StateChanged += ( _, e ) => PluginLog.Information( $"WebServer New State - {e.NewState}" );
|
||||
WebServer.StateChanged += ( _, e ) => Log.Information( $"WebServer New State - {e.NewState}" );
|
||||
|
||||
WebServer.RunAsync();
|
||||
}
|
||||
|
|
@ -515,7 +517,7 @@ public class Penumbra : IDalamudPlugin
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not check for dev plugin Penumbra:\n{e}" );
|
||||
Log.Error( $"Could not check for dev plugin Penumbra:\n{e}" );
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
|
|
@ -530,7 +532,7 @@ public class Penumbra : IDalamudPlugin
|
|||
var checkedDirectory = Dalamud.PluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Name;
|
||||
var ret = checkedDirectory?.Equals( "installedPlugins", StringComparison.OrdinalIgnoreCase ) ?? false;
|
||||
if (!ret)
|
||||
PluginLog.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;
|
||||
#else
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
|
|
@ -134,7 +133,7 @@ public partial class ModEditWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not parse {_fileType} file {_currentPath.File.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not parse {_fileType} file {_currentPath.File.FullName}:\n{e}" );
|
||||
_currentFile = null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Classes;
|
||||
|
|
@ -321,7 +320,7 @@ public partial class ModEditWindow
|
|||
var failedFiles = _editor!.ApplyFiles();
|
||||
if( failedFiles > 0 )
|
||||
{
|
||||
PluginLog.Information( $"Failed to apply {failedFiles} file redirections to {_editor.CurrentOption.FullName}." );
|
||||
Penumbra.Log.Information( $"Failed to apply {failedFiles} file redirections to {_editor.CurrentOption.FullName}." );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ using System.Numerics;
|
|||
using System.Threading.Tasks;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.ImGuiFileDialog;
|
||||
using Dalamud.Logging;
|
||||
using Dalamud.Utility;
|
||||
using ImGuiNET;
|
||||
using ImGuiScene;
|
||||
|
|
@ -429,7 +428,7 @@ public partial class ModEditWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not parse DDS {path} to RGBA:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not parse DDS {path} to RGBA:\n{e}" );
|
||||
return ( null, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
|
@ -449,7 +448,7 @@ public partial class ModEditWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not parse TEX {path} to RGBA:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not parse TEX {path} to RGBA:\n{e}" );
|
||||
return ( null, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
|
@ -466,7 +465,7 @@ public partial class ModEditWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not parse PNG {path} to RGBA:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not parse PNG {path} to RGBA:\n{e}" );
|
||||
return ( null, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
|
@ -520,7 +519,7 @@ public partial class ModEditWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not load raw image:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not load raw image:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -685,7 +684,7 @@ public partial class ModEditWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not save image to {path}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not save image to {path}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.ImGuiFileDialog;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Filesystem;
|
||||
|
|
@ -14,7 +13,6 @@ using System.Collections.Concurrent;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Penumbra.Util;
|
||||
|
||||
namespace Penumbra.UI.Classes;
|
||||
|
||||
|
|
@ -100,7 +98,7 @@ public sealed partial class ModFileSystemSelector : FileSystemSelector< Mod, Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Could not create directory for new Mod {_newModName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Could not create directory for new Mod {_newModName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -273,13 +271,13 @@ public sealed partial class ModFileSystemSelector : FileSystemSelector< Mod, Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Error cleaning up failed mod extraction of {file.FullName} to {dir.FullName}:\n{e}" );
|
||||
Penumbra.Log.Error( $"Error cleaning up failed mod extraction of {file.FullName} to {dir.FullName}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
if( error is not OperationCanceledException )
|
||||
{
|
||||
PluginLog.Error( $"Error extracting {file.FullName}, mod skipped:\n{error}" );
|
||||
Penumbra.Log.Error( $"Error extracting {file.FullName}, mod skipped:\n{error}" );
|
||||
}
|
||||
}
|
||||
else if( dir != null )
|
||||
|
|
@ -445,7 +443,7 @@ public sealed partial class ModFileSystemSelector : FileSystemSelector< Mod, Mod
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning(
|
||||
Penumbra.Log.Warning(
|
||||
$"Could not move newly imported mod {mod.Name} to default import folder {Penumbra.Config.DefaultImportFolder}:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using Lumina.Excel.GeneratedSheets;
|
||||
using OtterGui.Widgets;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ using OtterGui;
|
|||
using OtterGui.Raii;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.UI.Classes;
|
||||
using Penumbra.Util;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ using ImGuiNET;
|
|||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.Collections;
|
||||
using Penumbra.Util;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ using OtterGui;
|
|||
using OtterGui.Raii;
|
||||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.Interop.Loader;
|
||||
using Penumbra.Interop.Resolver;
|
||||
using Penumbra.Interop.Structs;
|
||||
using CharacterUtility = Penumbra.Interop.CharacterUtility;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
|
|
@ -13,7 +12,6 @@ using Penumbra.GameData.ByteString;
|
|||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.Interop.Structs;
|
||||
using Penumbra.UI.Classes;
|
||||
using Penumbra.Util;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ using System.IO;
|
|||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Components;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
|
|
@ -51,7 +50,7 @@ public partial class ConfigWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Warning( e.Message );
|
||||
Penumbra.Log.Warning( e.Message );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using System;
|
||||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using ImGuiNET;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ using Penumbra.UI.Classes;
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Dalamud.Logging;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
||||
|
|
@ -42,8 +41,8 @@ public partial class ConfigWindow
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Exception thrown during ModPanel Render:\n{e}" );
|
||||
PluginLog.Error( $"{Penumbra.ModManager.Count} Mods\n"
|
||||
Penumbra.Log.Error( $"Exception thrown during ModPanel Render:\n{e}" );
|
||||
Penumbra.Log.Error( $"{Penumbra.ModManager.Count} Mods\n"
|
||||
+ $"{Penumbra.CollectionManager.Current.AnonymizedName} Current Collection\n"
|
||||
+ $"{Penumbra.CollectionManager.Current.Settings.Count} Settings\n"
|
||||
+ $"{_selector.SortMode.Name} Sort Mode\n"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Numerics;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.UI.Classes;
|
||||
|
|
@ -92,7 +91,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Exception thrown during UI Render:\n{e}" );
|
||||
Penumbra.Log.Error( $"Exception thrown during UI Render:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Game;
|
||||
using Dalamud.Logging;
|
||||
|
||||
namespace Penumbra.Util;
|
||||
|
||||
|
|
@ -58,7 +57,7 @@ public class FrameworkManager : IDisposable
|
|||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
PluginLog.Error( $"Problem saving data:\n{e}" );
|
||||
Penumbra.Log.Error( $"Problem saving data:\n{e}" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue