Fix compling errors on various platforms/consoles

- Fixed some include paths case sensitive
- Fixed CogImguiInputHelper.h including itself
- Added missing includes
- Added missing forward declarations
- Fixed enums forward declarations
- Fixed "TCHAR_TO_ANSI" and const char* formatting issues
- Fixed "sscanf" on Linux
This commit is contained in:
Elhoussine Mehnik
2023-12-09 04:38:02 +01:00
parent caa0f015d4
commit 3e73c486a4
62 changed files with 194 additions and 85 deletions
@@ -572,7 +572,11 @@ void UCogWindowManager::SettingsHandler_ReadLine(ImGuiContext* Context, ImGuiSet
if (Entry == (void*)1)
{
ImGuiID Id;
#if PLATFORM_WINDOWS || PLATFORM_MICROSOFT
if (sscanf_s(Line, "0x%08X", &Id) == 1)
#else
if (sscanf(Line, "0x%08X", &Id) == 1)
#endif
{
UCogWindowManager* Manager = (UCogWindowManager*)Handler->UserData;
if (FCogWindow* Window = Manager->FindWindowByID(Id))
@@ -585,7 +589,11 @@ void UCogWindowManager::SettingsHandler_ReadLine(ImGuiContext* Context, ImGuiSet
{
ImGuiID Id;
int32 Visible = false;
#if PLATFORM_WINDOWS || PLATFORM_MICROSOFT
if (sscanf_s(Line, "0x%08X %d", &Id, &Visible) == 2)
#else
if (sscanf(Line, "0x%08X %d", &Id, &Visible) == 2)
#endif
{
UCogWindowManager* Manager = (UCogWindowManager*)Handler->UserData;
if (FCogWindow* Window = Manager->FindWindowByID(Id))