Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Soreepeong committed Dec 17, 2023
1 parent 077eae7 commit e25ee19
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private ImGuiClipboardFunctionProvider(InterfaceManager.InterfaceManagerWithScen
io.SetClipboardTextFn = (nint)(delegate* unmanaged<nint, byte*, void>)&StaticSetClipboardTextImpl;
io.GetClipboardTextFn = (nint)(delegate* unmanaged<nint, byte*>)&StaticGetClipboardTextImpl;

this.clipboardData = new(0, 0);
this.clipboardData = new(0, null);
return;

[UnmanagedCallersOnly]
Expand Down
4 changes: 2 additions & 2 deletions Dalamud/Interface/Utility/ImVectorWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public ImVectorWrapper(ref ImVector vector, delegate*<T*, void> destroyer = null
/// </summary>
/// <param name="initialCapacity">The initial capacity.</param>
/// <param name="destroyer">The destroyer function to call on item removal.</param>
public ImVectorWrapper(int initialCapacity = 0, delegate*<T*, void> destroyer = null)
public ImVectorWrapper(int initialCapacity, delegate*<T*, void> destroyer = null)
{
if (initialCapacity < 0)
{
Expand Down Expand Up @@ -292,7 +292,7 @@ public ImVectorWrapper(int initialCapacity = 0, delegate*<T*, void> destroyer =
/// <param name="destroyer">The destoryer function.</param>
public ImVectorWrapper(
int capacity,
int initialLength = 0,
int initialLength,
T* backingStorage = null,
ImVector* vectorStorage = null,
delegate*<T*, void> destroyer = null)
Expand Down
13 changes: 13 additions & 0 deletions Dalamud/Plugin/Internal/Types/LocalPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,19 @@ private static void SetupLoaderConfig(LoaderConfig config)
config.PreferSharedTypes = false;
config.SharedAssemblies.Add(typeof(Lumina.GameData).Assembly.GetName());
config.SharedAssemblies.Add(typeof(Lumina.Excel.ExcelSheetImpl).Assembly.GetName());

AppDomain.CurrentDomain.AssemblyResolve += (_, args) =>
{
try
{
return Assembly.Load(args.Name);
}
catch (Exception e)
{
Log.Error(e, "AssemblyResolve fail");
return null;
}
};
}

private void EnsureLoader()
Expand Down

0 comments on commit e25ee19

Please sign in to comment.