diff --git a/src/core/renderer/Renderer.cpp b/src/core/renderer/Renderer.cpp index 19059cc7..b01b70a0 100644 --- a/src/core/renderer/Renderer.cpp +++ b/src/core/renderer/Renderer.cpp @@ -174,7 +174,7 @@ namespace YimMenu } // never returns false, useless to check return - ImGui::CreateContext(); + ImGui::CreateContext(&GetInstance().m_FontAtlas); ImGui_ImplWin32_Init(Pointers.Hwnd); ImGui_ImplDX12_Init(m_Device.Get(), m_SwapChainDesc.BufferCount, @@ -299,6 +299,10 @@ namespace YimMenu vkDestroyDevice(m_VkFakeDevice, m_VkAllocator); m_VkFakeDevice = NULL; + ImGui::CreateContext(&GetInstance().m_FontAtlas); + ImGui_ImplWin32_Init(Pointers.Hwnd); + + LOG(INFO) << "Vulkan renderer has finished initializing."; return true; @@ -544,7 +548,7 @@ namespace YimMenu return; } - ImGui::CreateContext(); + ImGui::CreateContext(&GetInstance().m_FontAtlas); ImGui_ImplWin32_Init(Pointers.Hwnd); SetResizing(false); @@ -589,7 +593,7 @@ namespace YimMenu if (!ImGui::GetCurrentContext()) { - ImGui::CreateContext(); + ImGui::CreateContext(&GetInstance().m_FontAtlas); ImGui_ImplWin32_Init(Pointers.Hwnd); } diff --git a/src/core/renderer/Renderer.hpp b/src/core/renderer/Renderer.hpp index 78796b3a..a5d99a75 100644 --- a/src/core/renderer/Renderer.hpp +++ b/src/core/renderer/Renderer.hpp @@ -166,6 +166,9 @@ namespace YimMenu private: bool m_Resizing; + // Shared + ImFontAtlas m_FontAtlas; + //DX12 std::vector m_FrameContext; diff --git a/src/game/hooks/Info/NetworkRequest.cpp b/src/game/hooks/Info/NetworkRequest.cpp index dbf5a119..61318bca 100644 --- a/src/game/hooks/Info/NetworkRequest.cpp +++ b/src/game/hooks/Info/NetworkRequest.cpp @@ -1,8 +1,6 @@ #include "core/hooking/DetourHook.hpp" #include "game/hooks/Hooks.hpp" -#define LOG_REQUESTS 0 - namespace YimMenu::Hooks { #pragma pack(push, 8) @@ -49,7 +47,7 @@ namespace YimMenu::Hooks uint8_t* Info::NetworkRequest(HttpRequest* Request, uint8_t* a2, uint32_t a3) { -#if LOG_REQUESTS +#if 0 LOG(INFO) << "URL: " << Request->GetFull(); #endif return BaseHook::Get>()->Original()(Request, a2, a3);