fix c++ build

This commit is contained in:
goat 2021-08-19 20:54:56 +02:00
parent 0df82b20fe
commit 42e5853760
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 3 additions and 2 deletions

View file

@ -50,8 +50,8 @@ LONG WINAPI VectoredHandler(struct _EXCEPTION_POINTERS* ExceptionInfo)
auto actual_address = ex_address - base_address + 0x140000000;
FILE* log_handle;
errno_t result = _wfopen_s(&log_handle, dalamud_log_path.c_str(), L"a");
if (!result)
errno_t log_res = _wfopen_s(&log_handle, dalamud_log_path.c_str(), L"a");
if (!log_res)
{
MessageBox(NULL, L"Could not open dalamud.log for writing.", L"Dalamud", MB_OK | MB_ICONERROR | MB_TOPMOST);
}

View file

@ -462,6 +462,7 @@ namespace Dalamud.Plugin.Internal
/// <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="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)
{
var name = manifest?.Name ?? dllFile.Name;