mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
Merge pull request #256 from goatcorp/imgui_update
This commit is contained in:
commit
75742f79b3
5 changed files with 14 additions and 5 deletions
|
|
@ -263,7 +263,7 @@ namespace Dalamud {
|
||||||
|
|
||||||
Log.Information("Dalamud is ready.");
|
Log.Information("Dalamud is ready.");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Log.Error(ex, "Oh no! Dalamud::Start() failed.");
|
Log.Error(ex, "Dalamud::Start() failed.");
|
||||||
Unload();
|
Unload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -308,9 +308,9 @@ namespace Dalamud {
|
||||||
|
|
||||||
AntiDebug.Dispose();
|
AntiDebug.Dispose();
|
||||||
|
|
||||||
Log.Debug("Dalamud::Dispose OK!");
|
Log.Debug("Dalamud::Dispose() OK!");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Log.Error(ex, "skjdgjjkodsfg");
|
Log.Error(ex, "Dalamud::Dispose() failed.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ namespace Dalamud {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
var newLogger = new LoggerConfiguration()
|
var newLogger = new LoggerConfiguration()
|
||||||
.WriteTo.Async(a => a.File(logPath, outputTemplate: "{Timestamp:HH:mm:ss.fff}[{Level:u3}] {Message:lj}{NewLine}{Exception}"))
|
.WriteTo.Async(a => a.File(logPath, outputTemplate: "[{Timestamp:HH:mm:ss.fff}][{Level:u3}] {Message:lj}{NewLine}{Exception}"))
|
||||||
.WriteTo.EventSink()
|
.WriteTo.EventSink()
|
||||||
.MinimumLevel.ControlledBy(levelSwitch)
|
.MinimumLevel.ControlledBy(levelSwitch)
|
||||||
.CreateLogger();
|
.CreateLogger();
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ namespace Dalamud.Interface
|
||||||
{
|
{
|
||||||
private readonly Dalamud dalamud;
|
private readonly Dalamud dalamud;
|
||||||
|
|
||||||
|
private ulong frameCount = 0;
|
||||||
|
|
||||||
public DalamudInterface(Dalamud dalamud) {
|
public DalamudInterface(Dalamud dalamud) {
|
||||||
this.dalamud = dalamud;
|
this.dalamud = dalamud;
|
||||||
}
|
}
|
||||||
|
|
@ -243,6 +245,9 @@ namespace Dalamud.Interface
|
||||||
if (this.dalamud.Framework.Gui.GameUiHidden)
|
if (this.dalamud.Framework.Gui.GameUiHidden)
|
||||||
ImGui.BeginMenu("UI is hidden...", false);
|
ImGui.BeginMenu("UI is hidden...", false);
|
||||||
|
|
||||||
|
ImGui.BeginMenu(this.frameCount.ToString(), false);
|
||||||
|
this.frameCount++;
|
||||||
|
|
||||||
ImGui.EndMainMenuBar();
|
ImGui.EndMainMenuBar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,8 @@ namespace Dalamud.Plugin
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.Verbose("Plugin CreateInstance...");
|
||||||
|
|
||||||
var plugin = (IDalamudPlugin)Activator.CreateInstance(type);
|
var plugin = (IDalamudPlugin)Activator.CreateInstance(type);
|
||||||
|
|
||||||
// this happens for raw plugins that don't specify a PluginDefinition - just generate a dummy one to avoid crashes anywhere
|
// this happens for raw plugins that don't specify a PluginDefinition - just generate a dummy one to avoid crashes anywhere
|
||||||
|
|
@ -202,6 +204,8 @@ namespace Dalamud.Plugin
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.Verbose("Plugin Initialize...");
|
||||||
|
|
||||||
var dalamudInterface = new DalamudPluginInterface(this.dalamud, type.Assembly.GetName().Name, this.pluginConfigs, reason);
|
var dalamudInterface = new DalamudPluginInterface(this.dalamud, type.Assembly.GetName().Name, this.pluginConfigs, reason);
|
||||||
plugin.Initialize(dalamudInterface);
|
plugin.Initialize(dalamudInterface);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit cc64961aab96356c3f67ba7ff529448e2d04e4b3
|
Subproject commit ab463eb0434c1ffa864adfc3699afc2fe707489d
|
||||||
Loading…
Add table
Add a link
Reference in a new issue