From 9f874e6731faa889708dea7e8979b4d901d56fb4 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 29 Aug 2022 09:35:25 -0400 Subject: [PATCH] Wrap NFD::Init/Quit in ifdef; update aurora --- Runtime/ImGuiConsole.cpp | 4 ++++ extern/aurora | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Runtime/ImGuiConsole.cpp b/Runtime/ImGuiConsole.cpp index 22f961bb9..560b02b3d 100644 --- a/Runtime/ImGuiConsole.cpp +++ b/Runtime/ImGuiConsole.cpp @@ -52,7 +52,9 @@ ImGuiPlayerLoadouts ImGuiConsole::loadouts; ImGuiConsole::ImGuiConsole(CVarManager& cvarMgr, CVarCommons& cvarCommons) : m_cvarMgr(cvarMgr), m_cvarCommons(cvarCommons) { +#ifdef NATIVEFILEDIALOG_SUPPORTED NFD::Init(); +#endif } void ImGuiStringViewText(std::string_view text) { @@ -1442,7 +1444,9 @@ void ImGuiConsole::PostUpdate() { void ImGuiConsole::Shutdown() { dummyWorlds.clear(); stringTables.clear(); +#ifdef NATIVEFILEDIALOG_SUPPORTED NFD::Quit(); +#endif } static constexpr std::array GeneralItems{ diff --git a/extern/aurora b/extern/aurora index 5b25b6cee..c649cd62e 160000 --- a/extern/aurora +++ b/extern/aurora @@ -1 +1 @@ -Subproject commit 5b25b6cee172466c216c0e3a4ad72752d545ab9d +Subproject commit c649cd62eefa83da67a7ea3640eaf27ae50d8425