mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-03 05:08:13 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user