Wrap NFD::Init/Quit in ifdef; update aurora

This commit is contained in:
Luke Street 2022-08-29 09:35:25 -04:00
parent 49362ef591
commit 9f874e6731
2 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,9 @@ ImGuiPlayerLoadouts ImGuiConsole::loadouts;
ImGuiConsole::ImGuiConsole(CVarManager& cvarMgr, CVarCommons& cvarCommons) ImGuiConsole::ImGuiConsole(CVarManager& cvarMgr, CVarCommons& cvarCommons)
: m_cvarMgr(cvarMgr), m_cvarCommons(cvarCommons) { : m_cvarMgr(cvarMgr), m_cvarCommons(cvarCommons) {
#ifdef NATIVEFILEDIALOG_SUPPORTED
NFD::Init(); NFD::Init();
#endif
} }
void ImGuiStringViewText(std::string_view text) { void ImGuiStringViewText(std::string_view text) {
@ -1442,7 +1444,9 @@ void ImGuiConsole::PostUpdate() {
void ImGuiConsole::Shutdown() { void ImGuiConsole::Shutdown() {
dummyWorlds.clear(); dummyWorlds.clear();
stringTables.clear(); stringTables.clear();
#ifdef NATIVEFILEDIALOG_SUPPORTED
NFD::Quit(); NFD::Quit();
#endif
} }
static constexpr std::array GeneralItems{ static constexpr std::array GeneralItems{

2
extern/aurora vendored

@ -1 +1 @@
Subproject commit 5b25b6cee172466c216c0e3a4ad72752d545ab9d Subproject commit c649cd62eefa83da67a7ea3640eaf27ae50d8425