mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix c++ build
This commit is contained in:
parent
0df82b20fe
commit
42e5853760
2 changed files with 3 additions and 2 deletions
|
|
@ -50,8 +50,8 @@ LONG WINAPI VectoredHandler(struct _EXCEPTION_POINTERS* ExceptionInfo)
|
||||||
auto actual_address = ex_address - base_address + 0x140000000;
|
auto actual_address = ex_address - base_address + 0x140000000;
|
||||||
|
|
||||||
FILE* log_handle;
|
FILE* log_handle;
|
||||||
errno_t result = _wfopen_s(&log_handle, dalamud_log_path.c_str(), L"a");
|
errno_t log_res = _wfopen_s(&log_handle, dalamud_log_path.c_str(), L"a");
|
||||||
if (!result)
|
if (!log_res)
|
||||||
{
|
{
|
||||||
MessageBox(NULL, L"Could not open dalamud.log for writing.", L"Dalamud", MB_OK | MB_ICONERROR | MB_TOPMOST);
|
MessageBox(NULL, L"Could not open dalamud.log for writing.", L"Dalamud", MB_OK | MB_ICONERROR | MB_TOPMOST);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -462,6 +462,7 @@ namespace Dalamud.Plugin.Internal
|
||||||
/// <param name="isDev">If this plugin should support development features.</param>
|
/// <param name="isDev">If this plugin should support development features.</param>
|
||||||
/// <param name="isBoot">If this plugin is being loaded at boot.</param>
|
/// <param name="isBoot">If this plugin is being loaded at boot.</param>
|
||||||
/// <param name="doNotLoad">Don't load the plugin, just don't do it.</param>
|
/// <param name="doNotLoad">Don't load the plugin, just don't do it.</param>
|
||||||
|
/// <returns>The loaded plugin.</returns>
|
||||||
public LocalPlugin LoadPlugin(FileInfo dllFile, LocalPluginManifest manifest, PluginLoadReason reason, bool isDev = false, bool isBoot = false, bool doNotLoad = false)
|
public LocalPlugin LoadPlugin(FileInfo dllFile, LocalPluginManifest manifest, PluginLoadReason reason, bool isDev = false, bool isBoot = false, bool doNotLoad = false)
|
||||||
{
|
{
|
||||||
var name = manifest?.Name ?? dllFile.Name;
|
var name = manifest?.Name ?? dllFile.Name;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue